Just starting to learn C++ and have encountered a problem. When I try to run the code in this: http://www.cplusplus.com/doc/tutorial/program_structure/ I just get the error: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "pch.h"' to your source?
Sounds like the settings on your compiler or IDE are incorrect.
Googling the error message shows similar issues for people working in Visual Studio, which has lots of options when creating a new project and compiling code. Look for some tutorials online that walk you through creating a new project step-by-step to ensure the nobs and dials are correct.