Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Chapter 05] Objects missing a constructor
#1
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 InvaderStart.zip 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 InvaderFin.zip does however have the proper Objects constructor "Objects(char*, MyFiles*)" needed to run the code from the book.
Reply


Messages In This Thread
[Chapter 05] Objects missing a constructor - by jomoengineer - 11-04-2018, 04:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)