View Single Post
Old 03-18-2005, 06:46 AM   #7 (permalink)
CSflim
Sky Piercer
 
CSflim's Avatar
 
Location: Ireland
Quote:
Originally Posted by kel
It depends on the situation, but you can have arrays of pointers to objects and leave the last position as null so it works like a c-string. You can also encapsulate the array in a struct with a size element. If the array points to structs your defining then you can work in some way to have one of those structs be an end marker of the array.

Generally you should just use a data structure that does this for you and not worry about how large or small it is.

That's another good idea. Thanks kel.
__________________
CSflim is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76