|
-
Nov 27th, 2011, 01:40 PM
#4
Re: Arrayed class inside a class, what am I doing wrong?
It should... and shouldn't... what you have is an array of a class... you've defined the size of the array... but you haven't INSTANCIATED ... by dimming the size of the array, you've said "I need a box this big" ... but you still haven't filled the box with anything. Once you define the array, you need to instantiate the objects that go into each element.
-tg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|