Thread: C++ Arrays
View Single Post
Old 11-09-2006, 02:34 PM   #9 (permalink)
Nochte
Forum Expert
 
Join Date: Feb 2005
Age: 24
Posts: 985
Send a message via AIM to Nochte
Default

an array and a pointer variable are basically synonymous terms.

by
Code:
Class1 classes[] = { Class1("Hello"), Class1("Goodbye") };
You are creating a pointer pointing at the first element of classes. In effect, you can use classes exactly like you would any other pointer.

Quote:
Originally Posted by noobie
anyway, C is annoying, go with C++
I agree..*gibbily gibbily gibbily*

Last edited by Nochte; 11-09-2006 at 02:36 PM.
Nochte is offline   Reply With Quote