Invalid application of sizeof to incomplete type with a struct

前端 未结 5 1758
你的背包
你的背包 2020-12-06 04:06

I have a struct where I put all the information about the players. That\'s my struct:

struct player{
   int startingCapital;
   int currentCapital;
   int s         


        
5条回答
  •  一生所求
    2020-12-06 04:21

    I think that the problem is that you put #ifdef instead of #ifndef at the top of your header.h file.

提交回复
热议问题