Advertisement

Help with c++

Started by July 07, 2001 03:08 AM
12 comments, last by PaulB 23 years, 4 months ago
cant you just at the end before "return 0" put

cin >> celcius

? ..

obvious not gona make use of the value, but just so that it waits for you to press enter
Thanks everyone!
Advertisement
quote: Original post by whereiswez
cant you just at the end before "return 0" put

cin >> celcius

? ..

obvious not gona make use of the value, but just so that it waits for you to press enter


Very bad idea to even try to accept an input when all you want it to do is pause till you press a key. If you add cin >> celcius it will keep trying to accepting an input till explicitly give it one, enter key won''t work. getch() and getchar() however will accept the enter key. system("PAUSE"); is fine too, but I prefer to keep away from system(char *); command.
Hello from my world
oh i c .. cool .. well now i know too ..

This topic is closed to new replies.

Advertisement