Using Classes

1.Define the functions declared in Fight.h so that main.cpp produces results similar to when Fight.obj is included in the project

Three files are provided to you.

  • Main.cpp contains the driver that will run the declared functions to ensure they work properly, it does not need to be altered or submitted.
  • Fight.h contains the declarations and function prototypes related to the class, it does not need to be altered or submitted.
  • Fight.obj contains a compiled solution that will allow you to test existing functionality. It needs to be removed from your project for you to test your own implementation

There is a small example on Titanium of a project with similar file structure, simply add the three files to an empty C++ project and run. Notice how the .obj file and the .cpp file are occupying the same role, this is because the .obj file is just a compiled version of the .cpp source file. You will be supplying a .cpp file that defines all functions in Fight.H, just as Fight.obj does.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.