18th Apr 2020, 8:33 AM
Bibek
Bibek - avatar
2 ответов
+ 4
:/ my head blasts
19th Apr 2020, 5:53 AM
Learn Big - LB
Learn Big - LB - avatar
+ 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.
18th Apr 2020, 8:50 AM
Shadow
Shadow - avatar