[求助】VC++6.0
#include<iostream>
#include<cstring>
int main()
{
int errors=0;
string str("a very long literal string");
for (int ix=0;ix<1000;++ix)
{int len=str.size();
string str2=str;
if (str!=str2)
++errors;
}
cout<<"string class:"
<<errors<<"errors occurrse.\n;
}
error C2065: 'string' : undeclared identifier
#include<cstring>
int main()
{
int errors=0;
string str("a very long literal string");
for (int ix=0;ix<1000;++ix)
{int len=str.size();
string str2=str;
if (str!=str2)
++errors;
}
cout<<"string class:"
<<errors<<"errors occurrse.\n;
}