Can someone clearly explain why you would do this:
istead of just this:Code:const unsigned int MAX_SIZE = 120; MyClass *myInstance = new MyClass[MAX_SIZE];
Also how would you do this if MAX_SIZE is unknown at compile time?Code:MyClass myInstance[MAX_SIZE];
I have looked around, but nothing explains these concepts clearly, either that or my head is thicker than I thought it was...
Thanks in advance,