I'm new,
I am using Dev-C++ as my compiler. My program is compiling but does stay on the screen, it just close right after I run it. How can I keep the window open when I run my program?

//This is my first program in C++

#include <iostream>
using namespace std;

int main ()
cout << "Robert";
return 0;

What can I add to stop the program from closing?

(edit: at least you didn't have to wait for an answer, but you could have saved one minute by just checking that thread first...)
Last edited on
Topic archived. No new replies allowed.