- 3
Why can't I delete sololearn ?
2 Answers
+ 4
:/ my head blasts
+ 2
You can not delete statically allocated values, only dynamically allocated ones.
But there are other issues as well, first of all you are trying to make a string pointer point to a SoloLearn instance, which is not possible.
Then, comments like // ... \\
are multiline comments which include the next line in the comment, so your "Nasa" class definition becomes invalid.
Furthermore, void member variables are not allowed, maybe you wanted "rocket" to be a function there instead.