i have a class named Album. I would like to create an array the size of 5 on the freestore.
PHP Code:
Album* data[5] = new Album;
i get the following error in my vc++6 compiler
Quote:
cannot convert from 'class Album *' to 'class Album *[5]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
Error executing cl.exe.
|
can anyone help me?