I'm just learning C++ going through a tutorial using Visual C++ 2008 Express Edition. My cpp file has the code below but when I run it all I get is a command window with the words "Press any key to continue...". Shouldn't I be getting two windows with "This is the initial string content" in one and "This is a different string content" in the other?
// my first string
#include <iostream>
#include <string>
using namespace std;
int main3 ()
{
string mystring;
mystring = "This is the initial string content";
cout << mystring << endl;
mystring = "This is a different string content";
cout << mystring << endl;
return 0;
}