Destuctors and allocated memoryThank you
Destuctors and allocated memoryThanks for all the answers, explanations and suggestions; it works perfectly using [code]vector<stri...
Destuctors and allocated memorymain.cpp [code] #include <iostream> #include <vector> #include "class_dish.h" #include "class_dish_d...
correct use of deleteThank you - a great answer indeed.
correct use of delete[quote]Of course, in this trivial example, you don't need pointers at all and can just push normal i...