这是我的课程中的一门课!当我尝试编译整个程序时,我收到如下错误消息:
main.cpp:174: 错误: '((Scene*)this)->Scene::lake' 没有类类型
来源
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;
}
};