vector


In Stroustrup's C++ book, there is something like:

vector<double>* p = new vector<double>(s2) // s2 is an int variable

If I want to delete this vector, should I use

delete p;

or

delete [] p;
closed account (zb0S216C)
Use delete without the brackets.

Wazzak
Topic archived. No new replies allowed.