一道C++问题

来源:百度知道 编辑:UC知道 时间:2024/06/06 12:03:26
如果遇到Cannot open include file: 'stdafx.h': No such file or directory,该怎么办

如果你用的不是VC6,就把#include "stdafx.h"删了

'stdafx.h'的那个文件损坏了吧。。
去其他地方拷贝一个过来,或者你的C++与软件有冲突

把这个.cpp设置成Not Using Precompile File,把#include "stdafx.h"去掉。