Ana*_*ant 4 c++ compiler-errors header include visual-c++
我在Visual C++ Express 2008中的源代码如下:
#include “stdafx.h”
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
std::cout << “Hello world!\n”;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我正在使用Ivor Horton撰写的Visual C++ 2008一书
这些是我遇到的错误.如何摆脱错误?
1> e:\ my documents\visual studio 2008\projects\hello\hello\hello.cpp(1):错误C2006:'#include':预期文件名,找到'标识符'
1> e:\ my documents\visual studio 2008\projects\hello\hello\hello.cpp(1):致命错误C1083:无法打开包含文件:'':没有这样的文件或目录
谢谢!
归档时间: |
|
查看次数: |
11647 次 |
最近记录: |