有关c++中string类型输出
为什么使用如下语句就报错:
#include <iostream.h>
#include <string.h>
using namespace std;
void main()
{
string s1="asdf";
cout<<s1<<endl;
}
编译后:报如下错误:
error C2871: 'std' : does not exist or is not a namespace
error C2065: 'string' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 's1'
error C2065: 's1' : undeclared identifier
求救?

