c++编译出错:error C2857: '#include' statement specified was not found in the

来源:百度知道 编辑:UC知道 时间:2024/06/02 02:48:00
C++编译出现如下错误: error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file 请问怎么回事?

少包含了
#include "stdafx.h" // 用户自定义头文件
加上就好了
如果不行就重新建立一个工程
因为很多情况是建立错误 建立成了默认 #include "stdafx.h" 的工程了

程序拿来看看

Ycstdafx.h
就是没找到这个头文件......

好像是没有找到你导入的文件头。