Jump to content
  • Advertisement
Sign in to follow this  
ChedderNips

Am i doing this wrong?

This topic is 4432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am reading a beninning C++ book and the exercise that i am on is changing celcius temp to ferenheight. I use DEV- C++ and when i compile and run the black screen Comes up saying " Insert Celcius temp and press enter". and when i press enter the screen goes away...what can i do to fix this?

Share this post


Link to post
Share on other sites
Advertisement
Try putting system("PAUSE"); right before return 0;

It could be that your program is making the computation and then exiting before you have a chance to read the output.

There are otherways to do it too but I am not sure of them.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!