老是提示
1> 将指令添加到“stdafx.h”或重新生成预编译头
1>c:\users\zsy\documents\visual studio 2013\projects\consoleapplication2\consoleapplication2\consoleapplication2.cpp(365): fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"”?
怎么是控制台程序?你选择错了项目类型了吧。
两个思路:
1 在 每个.cpp文件的 第一行 添加#include "stdafx.h" (注意标粗的地方必须满足)
2 或者更改项目属性
项目->属性->配置属性->c/c++->预编译头->创建使用预编译头->不使用预编译头