Subj : Re: Borland C 3.1 problem To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Tue Nov 30 2004 09:44 am LongJohn wrote: >> Hi guys i try to write project with dynamic array using Array class but >> it doesn't work :( i can't initialize any array >> > Array arr(10,0,0); // I think that here i create arr > arr.add(5); // it doesn't work ??? Look in the online help for Array. You will see a yellow link named "Array::add()" Look at the parameters to add(). virtual void add(Object& toAdd) It wants an Object object, not an integer. Look in the Programmer's Guide book that should have been included with your compiler. The chapter "Container Class Libraries" contains discussions and examples for how to use BIDS based instead of Object based containers, and also how you can implement an Integer class based on the Object class. ( you would create the Integer class, create an Integer object who's value is 5, then .add() that object to your array.) .