RE: [Dev-C++] dynamic allocation and structs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-10-25 13:08:56
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Friday, October 25, 2002 1:54 PM > To: Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: RE: [Dev-C++] dynamic allocation and structs > > > Exactly why my previous mail specified use-cases. > > - Sparse matrix, where a lot of entries are NULL. > - Quick sort, since it's enough to move the pointers. > - Different object types for each index, simulating C++ abstract base > class. You need void * for this (or a container struct). But this means you can't use it directly. > - Supports large vector in 16-bit code, where it's possible > to have 16000 > entries of up to 64000 byte size each. Yep, you are an older programmer than me. :) I know the 64 KB DOS limit though. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |