誰幫我解決一下,我在Vs上邊運行沒問題呀。上邊運行不通過
??????????? int[] score = { 89, 90, 98, 56, 60, 91, 93,85 };
??????????? string[] name = { "吳松 ", "錢東宇", "伏晨", "陳陸", "周蕊","林日鵬", "何昆", "關昕" };
??????????? int temp=score[0];
??????????? string s="n";
??????????? for(int i=0;i<score.Length;i++)
??????????? {
??????????????? if (score[i] > temp)
??????????????? {
??????????????????? temp = score[i];
??????????????????? s = name[i];
??????????????? }
??????????? }
??????????? Console.WriteLine("分數最高的是{0},分數是{1}", s, temp);
??????????? Console.ReadKey();
2020-01-05
“分數最高的是{0},分數是{1}”
換成
“分數最高的是{0},分數是{1},”
這里要用中文逗號,輸出末尾少一個逗號,別的不多說了?