|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Dynamic arrays
On Fri, 22 Sep 2000, Mike Main wrote: > *Cough cough* LINKED LISTS *Cough Hack!* While linked lists are sometimes the answer, sometimes you want constant random access lookup (or contiguous memory). Personally I would use std::vector as it handles all this stuff. It is fast and typesafe and has already been beat on by many developers. Why is the stl not acceptable in your case? > ----- Original Message ----- > From: <dakline@vassar.edu> > To: <gameprogrammer@gameprogrammer.com> > Sent: Friday, September 22, 2000 7:49 PM > Subject: Dynamic arrays > > > > Here's a topic that comes up all the time. How do you allocate the size of > > an array after a program has been started. I know you can change the size > > of STL vectors but that's not what I want. I imagine it has something to > do > > with the char* format, using null-terminated strings maybe, but that won't > > work for other data types, and the method behind it is mysterious to me. > > > > Would someone mind giving the topic a rundown for me? > > > > thanks, > > SirFern > > > > > > ================================================================= > > The GameProgrammer.Com mailing list is for the open discussion > > of any topic related to the art, science, and business of > > programming games. This list is especially tolerant of beginners. > > We were all beginners once > > > > To SUBSCRIBE or UNSUBSCRIBE please visit: > > http://gameprogrammer.com/mailinglist.html > > > > > > ================================================================= > The GameProgrammer.Com mailing list is for the open discussion > of any topic related to the art, science, and business of > programming games. This list is especially tolerant of beginners. > We were all beginners once > > To SUBSCRIBE or UNSUBSCRIBE please visit: > http://gameprogrammer.com/mailinglist.html > -- Marc Hernandez ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|