I am trying to compile a simple VS program in C ++ as an assignment for a class. We just turn it on and I keep getting this error:
1> Assignment.cpp (15): fatal error C1010: unexpected end of file while searching for precompiled header. Have you forgotten to add '#include "StdAfx.h"' to your source?
My program is literally this little ...
#include <iostream> using namespace std; int main() { unsigned int day = 30; cout << "My Name is John Doe" << endl; cout << "My Major is CS" << endl; cout << "I was born on day " << day << endl; return 0; }
I just installed Visual Studio Express 2010. In fact, I would like to start an empty project instead of installing all these files with predefined ones, I think that would make it a lot easier, but I never get this option when creating a project. Anyone have any suggestions?
c ++ visual-studio visual-studio-2010
Howdy_McGee Aug 31 '11 at 18:32 2011-08-31 18:32
source share