using MS Visual Studio 6.0. I checked to see if the file 'string' exists, and indeed it does. It is also specified in the right folder in my include options. I cant seem to initialize anything with the string or basic_string classes. here's my code:
#include <string>
#include <iostream.h>
int main()
{
string mystring;
return 0;
}
debug:
C:\Documents and Settings\Gabe\Desktop\Learning C++\sdjfhwe\dfg.cpp(8) : error C2065: 'string' : undeclared identifier
C:\Documents and Settings\Gabe\Desktop\Learning C++\sdjfhwe\dfg.cpp(8) : error C2146: syntax error : missing ';' before identifier 'mystring'
C:\Documents and Settings\Gabe\Desktop\Learning C++\sdjfhwe\dfg.cpp(8) : error C2065: 'mystring' : undeclared identifier
#include <string>
#include <iostream.h>
int main()
{
string mystring;
return 0;
}
debug:
C:\Documents and Settings\Gabe\Desktop\Learning C++\sdjfhwe\dfg.cpp(8) : error C2065: 'string' : undeclared identifier
C:\Documents and Settings\Gabe\Desktop\Learning C++\sdjfhwe\dfg.cpp(8) : error C2146: syntax error : missing ';' before identifier 'mystring'
C:\Documents and Settings\Gabe\Desktop\Learning C++\sdjfhwe\dfg.cpp(8) : error C2065: 'mystring' : undeclared identifier