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
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement