I decided to try Visual Studio 2012 Express today. First thing to do was to write "Hello world!" application, however, I couldn't make it work. I created a Windows console application project, wrote standard code and it resulted in a run-time error.
Here's my code:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
system("pause");
return 0;
}
Looks like something is broken (maybe I missed something?). It gets a runtime error at line 7:
http://img443.imageshack.us/img443/7497/coutbroken.png
Any help please? :)
cout
(whatever this means, anyway). He's more after the fact that you might be compiling your program for an architecture different from the one you're trying to run it on. – Clannishsystem("pause")
withcin.get()
? – Zone