Help with c++

Started by
12 comments, last by PaulB 22 years, 9 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
Advertisement
Thanks everyone!
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