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;
}
|