There is a class in which you need to define and initialize the string. I understand that in classes you can only define intovy variables to the same static and constants.
class Background:public environment { public: static const char* str_to_bckgrnd="Images/environment/33.png"; }AS; the error is as follows: only static const integral data members can be initialized within a class
Why such a construction is not allowed? And how can we deal with the line differently?