为了账号安全,请及时绑定邮箱和手机立即绑定

string[,]kaoshi={{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何昆","93"}{"关欣","85"}, {"周蕊","60"},{"林日鹏","91"},{"何昆","93"}{"关欣","85"}}; int x=0; for (int i=0;i<kaoshi.GetLongLength(0);i++) { if(kaoshi[i,1

没法运行请问咋回事?


正在回答

3 回答

数组的类型是string, 不能比较大小,必须类型转换。

0 回复 有任何疑惑可以回复我~

可以再用int.Parse变回去

0 回复 有任何疑惑可以回复我~

数字用了引号不就不能比较了么。。。

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

string[,]kaoshi={{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何昆","93"}{"关欣","85"}, {"周蕊","60"},{"林日鹏","91"},{"何昆","93"}{"关欣","85"}}; int x=0; for (int i=0;i<kaoshi.GetLongLength(0);i++) { if(kaoshi[i,1

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信