Hello, on an attempt to create a class which is basically a mimic of vector<int> i don't seem to know how to delete pointer x in a destructor to free memory, also on pushback and pushfront methods, i can't free y when i implement delete[] y; y=NULL; i get some NULL out put when cout 'ing the object in main, i would really appreciat knowing why is that happening and how do i free memory y. Or is it freed automatically as the method exits? and feel free to give feedbacks on my coding :)
Thanks for your time.