【发布时间】:2011-04-14 03:48:53
【问题描述】:
我在 Visual C++ Express 2008 中的源代码如下:
#include “stdafx.h”
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
std::cout << “Hello world!\n”;
return 0;
}
我正在使用 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: 无法打开包含文件: '': 没有这样的文件或目录
谢谢!
【问题讨论】:
标签: c++ visual-c++ header include compiler-errors