// C++ headers
#include <iostream>
using namespace std;
int main()
{
cout<<"hi"<<endl;
system("pause");
return 0;
}
用Visual C++ 2005 Express Edition编译以上代码的结果:
错误 1 error C2065: “is”: 未声明的标识符 c:/program files/microsoft visual studio 8/vc/include/xmemory 44
错误 2 error C2143: 语法错误 : 缺少“;”(在“return”的前面) c:/program files/microsoft visual studio 8/vc/include/xmemory 44
错误 3 error C2143: 语法错误 : 缺少“;”(在“return”的前面) c:/program files/microsoft visual studio 8/vc/include/xmemory 44
错误 4 error C2143: 语法错误 : 缺少“;”(在“return”的前面) c:/program files/microsoft visual studio 8/vc/include/xmemory 44