VC.Net 2003中怎么编译Console程序
我在Project中选了 Win32 Console Project
程序源码为:
// cpp1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
string aaa = "Hello";
cout << aaa;
return 0;
}
为什么把 #include "stdafx.h" 去除就出现下面的错误讯息?
c:\Documents and Settings\payaqa.PAYAQA-KL901OB0\My Documents\Visual Studio Projects\cpp1\cpp1.cpp(15): fatal error C1010: unexpected end of file while looking for precompiled header directive
这一行标准C++里面应该没有的吧?