X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tools%2Fphm2if.cpp;h=e0ca9c81238e97137226410af2f2ed05bff77ab5;hp=e00e84e899c5b020296ed933c9109d340008863f;hb=9b2bb510160bdb56f04847f5b55ab61dd8a47976;hpb=9f7d379c2b03f3c09907cfd885072433e0428042 diff --git a/tools/phm2if.cpp b/tools/phm2if.cpp index e00e84e..e0ca9c8 100644 --- a/tools/phm2if.cpp +++ b/tools/phm2if.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: phm2if.cpp,v 1.16 2000/12/17 23:30:48 kevin Exp $ +** $Id: phm2if.cpp,v 1.17 2001/01/02 05:34:57 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -50,7 +50,7 @@ static struct option my_options[] = {0, 0, 0, 0} }; -static const char* g_szIdStr = "$Id: phm2if.cpp,v 1.16 2000/12/17 23:30:48 kevin Exp $"; +static const char* g_szIdStr = "$Id: phm2if.cpp,v 1.17 2001/01/02 05:34:57 kevin Exp $"; void phm2if_usage (const char *program) @@ -354,10 +354,11 @@ phm2if_main (int argc, char* argv[]) double dmin, dmax; int nscale; - printf ("Enter display size scale (nominal = 1): "); - scanf ("%d", &nscale); - printf ("Enter minimum and maximum densities (min, max): "); - scanf ("%lf %lf", &dmin, &dmax); + std::cout << "Enter display size scale (nominal = 1): "; + std::cin >> nscale; + std::cout ("Enter minimum and maximum densities (min, max): "; + std::cin >> dmin; + std::cin >> dmax; pImGlobal->displayScaling (nscale, dmin, dmax); } }