27 Jul
2012
27 Jul
'12
9:57 a.m.
Hi, I am creating an array, but i don't know how big I need it to be at the time it is instantiated. Once I figure out what I want that size to be, how do I assign it? The current solution i have is this: int array[]; int size; // do stuff { // new block keeps dummy from clogging namespace int dummy[size]; dummy @=> array; } Is there a better way? Regards, George