代码如下:string[][]arr=new string[ds.table[0].rows.count][];for(int ii=0;ii<ds.table[0].rows.count;ii++){arr[ii]=new string[2];arr[ii][0]=ds.table[0].rows[ii]["item1"];arr[ii][1]=ds.table[0].rows[ii]["item2"];}看上去不是c语言啊,高手们帮忙看一下吧!