Default is
Array(size_t capacity)
{
capacity = CAPACITY;
//CAPACITY is a global and capacity is 45000 so size wont exceed capacity anytime soon
buf = new string[capacity];
size = 0;
}
im just calling the copy constructor like this:
Array array;
//then i pushed elements into the array, already confirmed this works properly
then i do
Array copy = array;
hi,
don't take me wrong but it would be better if you paste both, class declaration and definition in your post.
also use code tags so other people can read your code.
to do this use "code tags" button (small <> button on the right when you start posting)