[Help] with simple C++ program...
Ok so I have a bit of code:
Code:
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string firststring = "Did this work? ";
string secondstring("If it did then I will be happy :D");
cout << firststring << endl;
cout << secondstring;
return 0;
}
Which works fine, my problem is every time I run it, it only stays open for a fraction of a second, then closes, what do I need to do to make it stay open until I close it? Thanks!
Oh and using Dev-C++ 4.9.9.2 if it makes any difference...