For an array with multiple dimensions, we usually need to write a for loop for each of its dimensions. For example:
for
vector< vector< vector
You could generate indices in one loop like this (A, B, C are dimensions):
int A = 4, B = 3, C = 3; for(int i=0; i