Class has no member named

前端 未结 9 1176
甜味超标
甜味超标 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:53

    Did you remember to include the closing brace in main?

    #include 
    #include "Attack.h"
    
    using namespace std;
    
    int main()
    {
      Attack attackObj;
      attackObj.printShiz();
    }
    

提交回复
热议问题