I am just wondering how do i reinitialized or make a new int[] after it has been declared before. The int array i am trying to reinitialize is a global variable. Thanks
You can do this if you are working with pointers, not with arrays:
1 2 3 4 5 6
int array[5];//will always be an int[5]
int *pointer = newint[5];//dynamic allocated array
delete[] pointer;//free the memory used by pointer
pointer = newint[7]; //re-initialize to a int[7]
delete[] pointer;