Hi, I'm trying to work with string under the MS Visual C++ 6.0 IDE. Here is my code:
And here are my errors generated when trying to compile:
So what am I missing here? Is this some sort of conflict with STL and MFC? This is for a data structures class and all i want to do is work with strings...thanks in advance!
Regards,
Faisal
code:<HR>Code:#include <stdlib.h> #include <iostream.h> #include <string.h><P> #include "stack.h"<P> void main() { String s1("Test String"); }
And here are my errors generated when trying to compile:
code:<HR>Code:error C2065: 'basic_string' : undeclared identifier error C2146: syntax error : missing ';' before identifier 's1' error C2065: 's1' : undeclared identifier
So what am I missing here? Is this some sort of conflict with STL and MFC? This is for a data structures class and all i want to do is work with strings...thanks in advance!
Regards,
Faisal