为什么我得到"错误C2006:'#include':期望一个文件名,找到'标识符'"?

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:无法打开包含文件:'':没有这样的文件或目录

谢谢!

cod*_*ict 6

使用双引号"包围stdafx.hHello world!\n

目前您正在使用一些倒置的引号/引号.