有没有办法在不知道列数的情况下将多维数组传递给函数……我的意思是,假设我想打印一个多维数组,比如说a[][9]和b[][3]。如果我创建了一个公共函数,比如print。the no of columns should be same for both actual andvoid print(int a[][])
我必须为不同的多维数组创建不同的函
我需要将一个数组传递给C#中的一个函数,其中数组可以是string[]、int[]或double[],并且可以是1到多维。推理:public int getLength(array[] someArray, int dimension) if(dimensionsomeArray.getLength(dimension);
else //get