请问各位
声明字符串怎么声明啊
我 写的老是报错啊
#include <iostream.h>
#include <string.h>
using namespace std;
int main()
{
string name="zhong";
cout<<string<<endl;
return 0;
}
-------------------Configuration: string - Win32 Debug--------------------
Compiling...
string.cpp
E:\vc++\add\string\string.cpp(7) : error C2065: 'string' : undeclared identifier
E:\vc++\add\string\string.cpp(7) : error C2146: syntax error : missing ';' before identifier 'name'
E:\vc++\add\string\string.cpp(7) : error C2065: 'name' : undeclared identifier
E:\vc++\add\string\string.cpp(7) : error C2440: '=' : cannot convert from 'char [6]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
执行 cl.exe 时出错.
string.exe - 1 error(s), 0 warning(s)
请问这是怎么回事哦