This is one class from my program! When I'm trying to compile the whole program, I get an error message like this:
main.cpp:174: error: '((Scene*)this)->Scene::lake' does not have class type
The source
class Scene
{
int L,Dist;
Background back ;
Lake lake(int L);
IceSkater iceskater(int Dist);
public :
Scene(int L, int Dist)
{
cout<<"Scene was just created"<<endl;
}
~Scene()
{
cout<<"Scene is about to be destroyed !"<<endl;
}
};