Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Chapter 05] KamaKazi Base code
#12
Yeah, the actual error was for "Shooter::Shooter(char*, MyFiles*); i just shorted it for the post.

The issue is that the code listed in the book shows the initialization list being placed in the header file and no reference to that Constructor in the code to be placed in the .cpp file. There is no Shooter.h or Shooter.cpp in the KamaKazi project files so it must be added by the reader from the code shown in the book, or their code, which is why I am pointing this out. The code for Invaders from the previous example has it correct and compiles without issue so that is at least a good reference. Actually, the code between Invaders and KamaKazi is quite different so it can be a bit confusing when comparing the two.

This is a good exercise and helps me learn this stuff since I have to dig deeper to understand what is happening rather than just copy from the book or other files.
Reply


Messages In This Thread
[Chapter 05] KamaKazi Base code - by jomoengineer - 11-13-2018, 07:57 AM
RE: [Chapter 05] KamaKazi Base code - by jomoengineer - 11-19-2018, 04:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)