Not quite sure why it works in one but not the other, considering there's a semi-colon missing. Try this instead: #include <iostream>
using namespace std;
int main()
{
cout << "\n";
cout << "\t";
cout << "Hello World\n";
cout << "\n";
cout << "\n";
system("pause");
return 0;
}
Quick edit: I compiled it myself to make sure it works, and it does. Although I am using Visual Studio 2005. See if it works, and if not, try it without system("pause").