Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Chapter 05] Objects missing a constructor
On page 88 of  the book it describes creating an Objects class in a file but it does not state that a Objects.h needs to be created nor does it mention the Objects.cpp file. However, this and the associated Objects.cpp is already in the BasicInvaders project.

Another issue is that on page 90, the description for the code that goes into Shooter.cpp shows it inheriting from Objects by passing f and fh to an Objects constructor but there is no associated constructor in the Objects files from BasicInvaders project.   The Invader project from does however have the proper Objects constructor "Objects(char*, MyFiles*)" needed to run the code from the book.

Forum Jump:

Users browsing this thread: 1 Guest(s)