想知道錯在哪兒
string[] names={"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬" ? ?,"何昆","關欣"};
int[] score={89,90,98,56,60,91,93,85};
int max=0;?
? for(int i=j= 0;i<score.Length;i++)
? {
? ? ?if(score[i]>max) ? ??
? ? ?{ ? ? ??
? ? ? ? max = score[i]; ? ? ? ??
? ? ? ? ?j=i; ? ? ?
? ? ?} ??
?}?
Console.Write("分數最高的是{0},分數是{1}", names[j],max );
2016-08-02
沒有i=j=0這種寫法,分開寫