Using Microsoft Visual C++
I was using Dev-C++ up to now, but then I heard that Microsoft Visual C++ was better. So I got it. But I can't even do the simplest things with it.
Here's the code:
#include <iostream>
using namespace std;
int main()
{
cout <<"Hello World!";
return 0;
}
The error that I get when I try to compile is this:
"fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?"
Now, when I try to add
#include <stdafx.h>
to the code, I get some more errors:
"error C2871: 'std' : a namespace with this name does not exist", and:
"error C2065: 'cout' : undeclared identifier"
Can anyone help please?

