Im writing a program on multi-dimensional arrays in c++. I have been instructed to ask the user how many dimensions he would like the array. Then I take my a one-dimensional array and put it into the N-dimensional array. The N-dimension array then needs to be placed in another M-dimension array (size specified by user). After, the M-dimensional array needs to be sorted. I know how to copy a multi-dimensional array into a one-dimensional or another M-dimensional array, but only when I know how many dimensions. Anyone know the way to go about doing this?