• Advertisement

Archived

This topic is now archived and is closed to further replies.

Arrays and classess

This topic is 5860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a question. Can an array slot be a class instance? So if I did: class foo { int a } foo array1 [2] ?? Or, can I do this with a struct instead?

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Andrew Nguyen
I have a question. Can an array slot be a class instance?


Yes.
quote:
Or, can I do this with a struct instead?

Yes.

Share this post


Link to post
Share on other sites

  • Advertisement