1、fatal error C1010: unexpected end of file while looking for precompiled header directive、

解决方法: 右键单击项目工程中的cpp文件,在菜单Project->Settings->C/C++->Precompile Header,设置为第一项:Not using precompile headers。

 

2、打开应用程序的时候就是 一个cmd 的框 闪一下 然后消失了

解决方法:1、程序末尾加getchar();       2、在main的最后加 system("pause");