There are two classes, one is the parent, the other is the heir.
**Base.h** class Derived;//предв. объявление сlass Base { public: void pic(); } **Derived.h** #include"Base.h" сlass Derived:public Base { public: static const char* str_to_bckgrnd; } const char* Derived::str_to_bckgrnd="Images/environment/background/lev_1/33.png"; **Base_func_implementation.h** #include"Base.h" void Base::pic() { i_a=ImageAdd(str_to_bckgrnd); } I want to use a string variable in the base class that I declare in the heir. Thought to make in the file with the base class the preliminary class declaration of the successor, did not help.
these are the mistakes
IntelliSense: identifier "str_to_bckgrnd" is undefined 'str_to_bckgrnd' : undeclared identifier How can I read a variable from an heir class? unless of course it can)