天天看点

编译程序中问题“fatal error C1010: unexpected end of file while looking for precompiled header directive

编译出现问题:unexpected end of file while looking for precompiled header directive

解决方案:

需要在文件头上添加一句:

#include "stdafx.h"

这个文件定义了源程序为C++格式。

否则文件需要保存为.C格式