e.g
int small_array[3] = {1, 2, 3}
int small_array1[3] = {2, 1, 5}
int small_array2[3] = {4, 1, 2}
i want to store those 3 array into another array let's call it
Big_array[3] = {small_array[3], small_array1[3], small_array2};
then i want to run a selection sort to see which array has min/max Sum
in this case small_array3=[3] will be min because it only sums up to 6. I know how to run sorts in array, but the problem is i need to recognize it by the sum of the little array first that's what i'm stuck at.
//make a 2-D array, size: x by 3
int **big_array = new *int[x];
for( int i = 0; i < x; i++ )
big_array[i] = newint[3];
... //do stuff
//delete the 2-D array
for( int i = 0; i < x; i++ )
delete[] big_array[i];
delete[] big_array;