C++ noob help.
|
Light Poster
|
|
| 21Aug2005,16:28 | #1 |
|
i'm a C++ noob, and i'm trying to learn it and all. but anyways, i got Visual C++ 6.0 and am running XP, and i'm having issues running the EXE after i compile the program, it runs and all. but it shuts off before it shows the output. I fixed this problem before, but it was like 4 monthes ago and i havent messed with it since, but i forgot how. So, any ideas?
|
|
Go4Expert Founder
|
![]() |
| 21Aug2005,16:45 | #2 |
|
Quote:
Originally Posted by madhu Case: F5 When you run the program with F5 the exe will start running and will eventually end without you being able to see the output you printed after the last scanf (user input). The best way to make the screen hold on the screen is to put a getch() at the end of the program and print something like Press any key to exit ... Case: Ctrl + F5 When you run the program with F5 the exe will start running and will eventually end but giving you a message Press any key to continue ... which you have given in the above scenario. Now if you have given the getch method then it will be twice and to avoid that you Am I not looking like programmer, giving case in the explanation as well. Thanks Shabbir Bhimani Last edited by shabbir; 21Aug2005 at 21:33.. |
|
Team Leader
|
![]() |
| 21Aug2005,16:58 | #3 |
|
Quote:
Originally Posted by shabbir |
|
Light Poster
|
|
| 20Sep2005,19:45 | #4 |
|
Thanks for the help. Lots of things were just too good for me to catch but at the end did it succesfully
|


