I'm teaching myself c++ and I did the Hello World program and saved it into a folder and everything got it compiled and then ran it when I did that all it did was flash a Dos text box for a second and then close it. What did I do wrong. Here's the code.
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}