R
ravenosu
Guest
Hello, im just getting into programming, so I did a search on the net for free compilers. I found one called Bloodshed Dev C++, downloaded it and then installed it. (latest version, yes)Now, here is my problem:
I made sure that I read the manual on how to compile and such and created some basic programs, you can see the code i used here http://www.halflife2.net/forums/showthread.php?s=&threadid=4669
(find the second code on that page)
I followed it exactly and when i use compile it compiles it just fine. But the problem is running the program. A MS-DOS looking window comes up and I see the cout << that I told it to display but when i enter a number and press enter, the whole screen dissapears (closes). Is this normal?? is the program not programmed right to show the rest of the text I told it to? Is it my compiler? Am I doing something totally wrong here?????
Note: my problem is not just this program, when I try any basic code that asks the user to input a letter or number and press enter, it always closes after I hit enter.
Any suggestions/info on what is going on?? help me i b a noob @ dis! thnx!;(
I made sure that I read the manual on how to compile and such and created some basic programs, you can see the code i used here http://www.halflife2.net/forums/showthread.php?s=&threadid=4669
(find the second code on that page)
I followed it exactly and when i use compile it compiles it just fine. But the problem is running the program. A MS-DOS looking window comes up and I see the cout << that I told it to display but when i enter a number and press enter, the whole screen dissapears (closes). Is this normal?? is the program not programmed right to show the rest of the text I told it to? Is it my compiler? Am I doing something totally wrong here?????
Note: my problem is not just this program, when I try any basic code that asks the user to input a letter or number and press enter, it always closes after I hit enter.
Any suggestions/info on what is going on?? help me i b a noob @ dis! thnx!;(