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