第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

運(yùn)行成功 輸出錯(cuò)誤

string [,]nScore=new[,]{{"吳松","89"},{"錢東宇","90"},{"伏晨","98"},{"陳陸","56"},{"周蕊","60"},{"林日鵬","91"},{"何昆","93"},{"關(guān)欣","85"}};
??????????? string name="";
??????????? int maxScore=0;
??????????? for (int i=0; i<nScore.GetLength(0);i++)
??????????? {
??????????????? if (maxScore<Convert.ToInt32(nScore[i,1]))
??????????????? {
??????????????? maxScore=Convert.ToInt32(nScore[i,1]);
??????????????? name=nScore[i,0];
??????????????? }
??????????? }
??????????? Console.WriteLine("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}",name,maxScore);

正在回答

3 回答

運(yùn)行結(jié)果意思是對(duì)的,結(jié)果有誤是你的標(biāo)點(diǎn)格式與答案不一樣,你換成中文逗號(hào)就可以了

0 回復(fù) 有任何疑惑可以回復(fù)我~

是對(duì)的,沒問題

0 回復(fù) 有任何疑惑可以回復(fù)我~

string[,] test = new string[8, 2] { { "吳松", "89" }, { "錢東宇", "90" }, { "伏晨", "98" }, { "陳陸", "56" }, { "周蕊", "60" }, { "林日鵬", "91" }, { "何昆", "93" }, { "關(guān)欣", "85" } };
??????? int max = 0, m = 0;
??????? for (int i = 0; i < test.GetLongLength(0); i++)
??????? {
??????????? int n = Convert.ToInt16(test[i, 1]);
??????????? if (n >= max)
??????????? {
??????????????? max = n;
??????????????? m = i;
??????????? }
??????? }
??????? Console.WriteLine("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}。", test[m, 0], test[m, 1]);

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

運(yùn)行成功 輸出錯(cuò)誤

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)