Class has no member named

前端 未结 9 1168
甜味超标
甜味超标 2021-02-19 01:00

I have a problem with accessing a function from a class with the class object in my main function. I am just trying to make the object for the class and use that ob

9条回答
  •  孤城傲影
    2021-02-19 01:32

    Do you have a typo in your .h? I once came across this error when i had the method properly called in my main, but with a typo in the .h/.cpp (a "g" vs a "q" in the method name, which made it kinda difficult to spot). It falls under the "copy/paste error" category.

提交回复
热议问题