请高手指教:为什么会出现这个错误?
unexpected end of file while looking for precompiled header directive

解决方案 »

  1.   

    你在Setting中的c/c++中的precompiled headers一笑中选择了
    选择了Use Precompiled header file,而你却没有在cpp中包含stdafx.h的头文件是一个原因。而且通常出现这个问题都是这个原因的。还有就是你的代码存在问题了。
      

  2.   

    在你代码的第一行加上:#include<stdafx.h>就好了
      

  3.   

    To: clife(空谷的松籁) ,我加进去后,一个错误变成了52个错误,这是怎么回事?