View Single Post
Old 07-20-2002, 07:35 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,503
sde is on a distinguished road
fixed

well it seems like it didn't like me creating new objects on the same line that i was defining the array.. this seems to work:

Quote:
int main()
{
int const CAPACITY=5;
Album* data[CAPACITY];


for(int count=0;count<CAPACITY;count++)
{
data[count]= new Album;
data[count]= 0;
}



return 0;
}
sde is offline   Reply With Quote