Pointer not allowed

Hello , I was following the BattleTank section until I got this Error, in this state I can compile but when I move on with the lecture I’m getting more Errors and then it won’t compile

Are you including TankBarrel.h at the top? That should fix the error…

Can anyone explain why TankBarrel.h and not Tank.h. Where did this header come from?

Privacy & Terms