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
Help with c++
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement