text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

c04p183.cpp

Go to the documentation of this file.
00001 
00015 double* oldArray = anArray;          // copy pointer to array
00016 anArray = new double[2 * arraySize]; // double array size
00017 for (int index = 0; index < arraySize; ++index)
00018    anArray[index] = oldArray[index]; // copy old array
00019 delete [] oldArray;                  // deallocate old array

Generated on Sun Aug 27 13:05:37 2006 for AWLogo by  doxygen 1.4.6