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

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

不知道哪里錯(cuò)了

namespace ConsoleApp11

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? ? ? string[] names = new string[8] { "吳松", "錢東宇", "伏晨", "陳陸", "周蕊", "林日鵬", "何昆", "關(guān)欣" };

? ? ? ? ? ?int[] scores = new int[8] { 89, 90, 98, 56, 60, 91, 93, 85 };

? ? ? ? ?

? ? ? ? ? ? int x = 0;

? ? ? ? ? ? for (x=0;x<8;x++ )

? ? ? ? ? ? {? ??

? ? ? ? ? ? ? ? if (scores[x] > scores[0])

? ? ? ? ? ? ? ? {? ?

? ? ? ? ? ? ? ? ? ? scores[0] =scores[x];

? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ?}

? ? ? ? ? ? int max = scores[0];

? ? ? ? ? ?Console.Write("分?jǐn)?shù)最高的是" + names[x] + "分?jǐn)?shù)是" + max );


? ? ? ? }

? ? }

}


正在回答

2 回答

字符串name為空

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

改成這樣

? string[] names = new string[8] { "吳松", "錢東宇", "伏晨", "陳陸", "周蕊", "林日鵬", "何昆", "關(guān)欣" };

? ? ? ? ? ?int[] scores = new int[8] { 89, 90, 98, 56, 60, 91, 93, 85 };

? ? ? ? ? ? string name = null;

? ? ? ? ? ? int x = 0;

? ? ? ? ? ? for (x=0;x<8;x++ )

? ? ? ? ? ? {? ??

? ? ? ? ? ? ? ? if (scores[x] > scores[0])

? ? ? ? ? ? ? ? {? ?

? ? ? ? ? ? ? ? ? ? scores[0] =scores[x];

? ? ? ? ? ? ? ? ? ? name=names[x];

? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ?}

? ? ? ? ? ? int max = scores[0];

? ? ? ? ? ?

? ? ? ? ? ?Console.Write("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}",name,max );

第三行是什么意思

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

舉報(bào)

0/150
提交
取消
C#開發(fā)輕松入門
  • 參與學(xué)習(xí)       255755    人
  • 解答問題       1527    個(gè)

本門課程是C#語言的入門教程,將帶你輕松入門.NET開發(fā)

進(jì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)