error: no matching function for call to

前端 未结 3 1339
萌比男神i
萌比男神i 2021-01-03 01:52

Heres my error...

\"In constructor \'NumGame::NumGame(int&)\': error: no matching function for call to \'Category::Category()\'\"

Ive looked at a few sim

3条回答
  •  走了就别回头了
    2021-01-03 02:13

    in your NumGame class you have to provide a call to constructor of base class. if you don t, compiler do it for you with default contructor : in your case Category() that you don t have..

提交回复
热议问题