Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!ukc!cam-eng!act From: act@eng.cam.ac.uk (A.C.Thornton) Newsgroups: comp.lang.c++ Subject: c++ storage management of arrays Keywords: c++ Message-ID: <21795@rasp.eng.cam.ac.uk> Date: 7 Feb 91 16:50:24 GMT Sender: act@eng.cam.ac.uk Lines: 31 I have a question about the allocation of arrays of classes. How do I increase the size of an array of classes after I've already allocated it using "new." For example: If I've defined the class Test in a header file as: class Test { public: double v1; // ... test(); // ... } then instantiate an array of Test using: int bufsize=10; Test *test = new Test[bufsize]; How do I increase the size of that array later on in the code when I need a larger buffer size? (like realloc in C) Thanks in advance for your help. Anna C. Thornton Engineering Design Centre Cambridge University Cambridge CB3 9ET UK