hi all,
going through a beginning c++ book and ran into an issue with inheritance. i want to take the existing class "string" and expand on it. i was going to create a new class called "text" with the following in a "text.h" file...
and then the function definitions in a "text.cpp" file. however, when i try to build the project (using visual studio.net), i get an error "string: base class undefined".
i tried doing an "#include <string>" in various places with no resolution. what am i doing wrong?
thanks,
glenn
going through a beginning c++ book and ran into an issue with inheritance. i want to take the existing class "string" and expand on it. i was going to create a new class called "text" with the following in a "text.h" file...
Code:
class text : public string
{
....
};
and then the function definitions in a "text.cpp" file. however, when i try to build the project (using visual studio.net), i get an error "string: base class undefined".
i tried doing an "#include <string>" in various places with no resolution. what am i doing wrong?
thanks,
glenn