A stack defined variable should not be deallocated
struct Superhero {
std::string superpower;
};
Superhero wonder_woman{};
Superhero* dianaPrince = &wonder_woman;
dianaPrince->superpower = "Lasso of Truth";
// Using the -> operator to access member variable superpower:
std::cout << "Wonder Woman, possesses the mighty " << dianaPrince->superpower;
// Memory cleanup:
delete dianaPrince; <<===== WRONG
cpp/exercises/concept/speedywagon/.docs/introduction.md
Line 89 in b0d892c
A stack defined variable should not be deallocated