N
Nikki
Hi,
I have a question when I am programming. I define a class
(Component{} and I want to use "new" to dynamiclly alloct a class
array, such as Component C[num].
I know how to do with one element: Component *C = new Component();
But how to do with an array? I use: Component **C = new
*Component()[4]; But it's not right.
If you can give me any information, I'll be so appreciated.
Nikki
I have a question when I am programming. I define a class
(Component{} and I want to use "new" to dynamiclly alloct a class
array, such as Component C[num].
I know how to do with one element: Component *C = new Component();
But how to do with an array? I use: Component **C = new
*Component()[4]; But it's not right.
If you can give me any information, I'll be so appreciated.
Nikki