Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
I was just gettiing back into c/c++ and I ran into a little wall. Every basic program I make cant stay open once he code is executed. I have a feeling this isnt code realated and jsut has to do with the fact that I am on xp running a "hello world" program. anyone know how to fix this or what I can do?
BTW, the only way i can check to see if whatever program I made worked right is if i open up the exe through command prompt.
The command window that the code runs in shuts when the program finishes running....so you need to stop it from finishing until you say so....e.g. require some input from the user. So add <<cin or getchar() or the equivilent.