这是c中的代码#define N 340
int a[N][6],b[34][34],ramble[N][6],bool[34],pool[N],p=0,watch[340],tell[N][20],tall[N][10];
int boolf[34],tall_a[N][10],tall_b[N][10],x1,x2,y1,y2,y3,lot[340],bijiao;我知道可以这样转换成c#中的代码
int[][] a=new int[N][6];
int[][] b=new int[34][34];
.....
但是这个我认为很麻烦,因为我得用很多行分别声明很多个数组
有没有什么方便的方法呢,我刚从c转过来的
谢谢
int a[N][6],b[34][34],ramble[N][6],bool[34],pool[N],p=0,watch[340],tell[N][20],tall[N][10];
int boolf[34],tall_a[N][10],tall_b[N][10],x1,x2,y1,y2,y3,lot[340],bijiao;我知道可以这样转换成c#中的代码
int[][] a=new int[N][6];
int[][] b=new int[34][34];
.....
但是这个我认为很麻烦,因为我得用很多行分别声明很多个数组
有没有什么方便的方法呢,我刚从c转过来的
谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货