C#数组怎么写?
2022-12-11 · 百度认证:北京惠企网络技术有限公司官方账号
关注
展开全部
C#数组有4种写法\x0d\x0a第一种:ArrI=new Array();\x0d\x0aArrI[0] = new Array("username1","0","609");\x0d\x0aArrI[1] = new Array("username2","609","610");\x0d\x0aArrI[2] = new Array("username3","609","611");\x0d\x0a\x0d\x0a第二种:\x0d\x0aArrII=new Array(\x0d\x0anew Array("username1","0","609"),\x0d\x0anew Array("username2","609","610"),\x0d\x0anew Array("username3","609","611")\x0d\x0a);\x0d\x0a\x0d\x0a第三种:\x0d\x0aArrIII=[];\x0d\x0aArrIII[0] = new Array("username1","0","609");\x0d\x0aArrIII[1] = new Array("username2","609","610");\x0d\x0aArrIII[2] = new Array("username3","609","611");\x0d\x0a\x0d\x0a第四种:\x0d\x0aArrIIII=[\x0d\x0a["username1","0","609"],\x0d\x0a["username2","609","610"],\x0d\x0a["username3","609","611"]\x0d\x0a];
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询