coke wrote:
well what i am trying to do is a copy an array and destroy the extra
integers that i no longer need after they are used. So i am trying to
make a copy constructor and a destructor so i can copy an array for
only what i need. it is a calculator program and when i find a ) i
need to stop the program and calculate it and continue for example
((6+4)-1)
so it can do 6+4 and destroy (6+4) to then make it (10-1)
The ( and ) are integers and the addition and multipication are
different arrays
hope this helps thanks.
My advice would be not to use array for such a fragile task. Use the
containers in the stl (standard template library). If you are not
familar with them, you will definetly need to read a good book about
them - you'll need them all the time.
As for your question: I still do not understand well enough what you
want to do to help you with the task. Sorry.
Gabriel