亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

求大佬指導哪里錯了,一直沒找出來

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

? ? ? ? ? ? string[] xingming = new string[] {"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關欣"};

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

? ? ? ? ? ? for(int x=1,x < num.Length,x++)

? ? ? ? ? ? {

? ? ? ? ? ? ? ?if(num[i]>max)

? ? ? ? ? ? ? ? max=num[i];

? ? ? ? ? ? }

? ? ? ? ? ? Console.Write(max);

? ? ? ? ? ??


Program.cs(14,26):?error?CS1525:?Unexpected?symbol?`<',?expecting?`)',?`,',?`;',?or?`='
Program.cs(14,40):?error?CS1525:?Unexpected?symbol?`++',?expecting?`)',?`,',?`;',?or?`='
Program.cs(18,13):?error?CS1525:?Unexpected?symbol?`}'
Program.cs(18,12):?error?CS1525:?Unexpected?symbol?`}',?expecting?`)',?`,',?`;',?or?`='
Program.cs(19,26):?error?CS1519:?Unexpected?symbol?`('?in?class,?struct,?or?interface?member?declaration
Program.cs(19,30):?error?CS1519:?Unexpected?symbol?`)'?in?class,?struct,?or?interface?member?declaration
Program.cs(23,0):?error?CS1525:?Unexpected?symbol?`}'
Compilation?failed:?7?error(s),?0?warnings


正在回答

1 回答

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


? ? ? ? ? ? string[] xingming = new string[] {"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關欣"};


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


? ? ? ? ? ?string name = xingming[0];


? ? ? ? ??

? ? ? ? ? ?for (int i=0;i<num.Length;i++)


? ? ? ? ? ? {


? ? ? ? ? ? ? ?if(num[i]>max)

? ? ? ? ? ? ? ?{

? ? ? ? ? ? ? ? ? ?max=num[i];


? ? ? ? ? ? ? ? ? ?name=xingming[i];

? ? ? ? ? ? ? ?}


? ? ? ? ? ? ? ??


? ? ? ? ? ? }


? ? ? ? ? ? Console.Write("分數最高的是{0},分數是{1}",name,max);



在你的基礎上改的,問題太多了,你自己找一下吧,最好把前面的課程再看一遍。


0 回復 有任何疑惑可以回復我~
#1

精慕門2292661 提問者

感謝大佬指點?
2021-09-22 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

求大佬指導哪里錯了,一直沒找出來

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號