// JP opened flex table

Click to See Complete Forum and Search --> : string


jesht
March 15th, 2002, 09:48 AM
i was coding a c++ program on VC++ 6.0
the compiler is not recognizing the string datatype.
i'm getting an error-the string data type as an undeclared indentifier even after i put a #include<string.h>

has it got something to do with the project settings menu?

NMTop40
March 17th, 2002, 10:31 AM
The string class (from STL) is in <string> not <string.h>

In some versions you also have to include <xstring>.

And then you have to remember that string is defined only in namespace std, which you must mention somewhere along the way (using namespace std, using std::string or putting std::string throughout your code).


The best things come to those who rate

//JP added flex table