C++新特性课程程序运行失败
程序有点不对,选择的项目类型是Win32 console application, 但是头文件部分不知道怎么修改,手敲进去之后运行就出现错误了,烦请老师指出错误
程序有点不对,选择的项目类型是Win32 console application, 但是头文件部分不知道怎么修改,手敲进去之后运行就出现错误了,烦请老师指出错误
2016-01-01
1>------ Rebuild All started: Project: bool, Configuration: Debug Win32 ------
1>Build started 2016/1/3 20:20:44.
1>PrepareForBuild:
1> Creating directory "c:\users\ss\documents\visual studio 2013\Projects\bool\Debug\".
1> Creating directory "Debug\bool.tlog\".
1>InitializeBuildStatus:
1> Creating "Debug\bool.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> stdafx.cpp
1> bool.cpp
1>c:\users\ss\documents\visual studio 2013\projects\bool\bool\bool.cpp(1): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>c:\users\ss\documents\visual studio 2013\projects\bool\bool\bool.cpp(2): warning C4627: '#include <stdlib.h>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>c:\users\ss\documents\visual studio 2013\projects\bool\bool\bool.cpp(24): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:02.24
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
举报