Thread: C++ Arrays
View Single Post
Old 11-09-2006, 11:45 AM   #2 (permalink)
noobie
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

try:

Class1 * classes=new Class1[2];

classes[0]=new Class1("asds");
classes[1]=new Class1("sads");
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."

Last edited by noobie; 11-09-2006 at 11:48 AM.
noobie is offline   Reply With Quote