Arrays and classess
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement