请教数组问题 int[,] arr= new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };Java中通过arr[0]即可获得{1,2},在C#中如何取得该数组呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int[,] numbers2D = new int[,] { { 9, 99 }, { 3, 33 }, { 5, 55 } }; Console.WriteLine(numbers2D[0,0]);打印结果:9 我要取{1,2},不是取1、2、3、4等等,有没有像Java、C那样通过arr[0]来取值的方法? 使用交错的数组 int value = 0; int[][] arr = new int[][] { new int[] {1,2}, new int[] {3,4}, new int[] {5,6} }; int[] i = arr[0]; value = i[0]; value = i[1]; value = arr[0][0]; value = arr[0][1]; .net网站上传 关于ListView的问题,谢谢 请问如何在调用时指定[引用的DLL]所引用的DLL路径? 如何做注销的功能,C/S程序,简单的说就是重新启动下此程序 C# Socket新手上路,请各位大虾多多指教 请大家来讨论. 输入 c#2005 用按钮实现循环的中止 inne制作安装包判断win7系统是32位还是64位 关于文件切割、合并的问题 xml文件与combobox控件的绑定问题,很急,拜托各位高手了,最好能带上完整地源码 comboBox1 如何读取数据库数据 然后显示在下拉框里面 请大大帮忙
Console.WriteLine(numbers2D[0,0]);打印结果:9
{
new int[] {1,2},
new int[] {3,4},
new int[] {5,6}
};
int[] i = arr[0];
value = i[0];
value = i[1];
value = arr[0][0];
value = arr[0][1];