在C#编程语言中,如何传递多维数组的一行?例如,假设我有以下内容:
此外,有人能解释一下在C#中拥有矩形和锯齿数组的好处吗?其他流行的编程语言(比如Java)是否也有这种情况发生?谢谢大家的帮助!
int[,] foo;
foo = new int[6,4];
int[] least;
least = new int[6];
for(int i = 0; i < 6; i++)
{
least[i] = FindLeast(ref foo[i]); //How do I pass the ith row of foo???
}
此外,有人能解释一下在C#中拥有矩形和锯齿数组的好处吗?其他流行的编程语言(比如Java)是否也有这种情况发生?谢谢大家的帮助!