Editor Dev C++
Hopefully this a simple question ? I'm using Dev C++ Editor . I'm write very basic program like ex"Hello world" the problem is when I go to complie & run the program, windows flash & goes aways, what command should I use, to make that windows stay on, so I can see my Hello World message.
Thanks in advance for all the help. newb...... here
This is a frequently answered question, so you can search for more detailed solutions. The simple, standard solution is to add cin.get() at the end of your program (before any return statements) so that it waits for the user to press enter before continuing.
If your program includes user input later, you may need to add cin.ignore() before the cin.get().
Thank you very much dave, I really do appreciate it.