does not have class type C++

前端 未结 4 958
眼角桃花
眼角桃花 2021-02-02 13:28

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)

4条回答
  •  你的背包
    2021-02-02 14:28

    Replace the line Lake lake(int L); with Lake lake= Lake(L); or with this: Lake lake{L};

提交回复
热议问题