0
Rectify the error
5 Antworten
+ 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)
+ 2
Mirielle,
debuging tools are used with executable files, but that code is not compiled, so an executable file will not be generated.
+ 2
Kahkeshan Begum ,
You are welcome.
0
@andriy kan
thanks!!1
i got it