I'm trying to use strings because I feel more comfortable with them - char* stuff is still a bit of a mystery.
This is using g++ no a Unix box.
Anyways, I have a header file - this.h:
string theOther(string); //call this line 5
bool someThing(string); //line 6
and a .cc file - this.cc:
string this::theOther(string str) //call this line 7
when I try to compile this.cc, the compiler says
this.h:5: syntax error before '('
this.h:6: 'string' was not declared in this scope
this.h:6: invalid data member initialization
this.h:6: use '=' to initialize static data members
this.cc:7: syntax error before '::'
Why all the grief about strings?
I even tried adding #include <string.h> to the .h file, but that didn't help.
The points go to whomever can tell me how to get strings working in this context.