18th Feb 2020, 8:36 AM
Lazy_codeR.04
Lazy_codeR.04 - avatar
5 Réponses
+ 3
You declared hp and wp as pointers but initialized them with integers in the constructor. There are two solutions: 1. Declare hp and wp as integers, or 2. initialize them with new allocated integers (using new operator and don't forget to delete them in destructor)
18th Feb 2020, 9:01 AM
andriy kan
andriy kan - avatar
+ 2
Mirielle, debuging tools are used with executable files, but that code is not compiled, so an executable file will not be generated.
18th Feb 2020, 9:16 AM
andriy kan
andriy kan - avatar
+ 2
Kahkeshan Begum , You are welcome.
18th Feb 2020, 9:55 AM
andriy kan
andriy kan - avatar
0
@andriy kan thanks!!1 i got it
18th Feb 2020, 9:45 AM
Lazy_codeR.04
Lazy_codeR.04 - avatar