class sortedVector { public: int* vect; int length; int size; sortedVector(int n):size(n) { length=0; vect=new int[n]; } ~sortedVector() {delete [] vect; } //methods.... }; void main() { sortedVector v(5); //.... v.~sortedVector(); //if I write this, I get a run-time error ASSERTION_FAIL }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)