有数组float[][] f = new float[9][];已知,且包含实际数据,我现在需要遍历这个数组的数组,而且要取子数组作参数调用一个函数,然后再作外重(整个数组)的循环,就上面的数组f,我如何表示出他的子组?
代码:
float[][] f = new float[9][];
float[] tmpf; for(int i = 0; i < f.Length; i++)
{
// float[] fh[i] = f[f.Length][];
tmpf = this.k, plat, hresolv);
for(int j = 0; j < tmpf.Length; j++)
{
ptsl.Add(new PointF(i * uly , tmpf[j]));
}
}我需要的就是被注释掉的行,应当如何表达?
函数getPointsx(f[i],...)是 public float[] getPointsx(float[] fa, float k, int p, int hr)