D
Default User
Aguilar said:It actually wasn't a homework problem at all.
I noted that in another post.
Classes don't start until
Sept. 1st, and though I'm in Algorithms and Data Structures next semester, I
don't think they will be giving us anything quite this easy. It was a
problem from "The C++ Programming Language," Chapter 10, question 9. The
reason why I don't want to use a vector is because I want to do it the way
vector does it.
As someone else pointed out, you were supposed to create a set, not a
vector. So you shouldn't be implementing the way vector does.
I'm trying to pretend like it is real library code, for
which you would not want to use the (if slightly) less efficient vector.
Says who? Library code has as much need to be safe and easy to develop
as any other code. Premature optimization and all that.
In any case, I've got it working now, using delete and then new.
Ok, good.
Brian Rodenborn