string[] name = new string[] {名字};
int[] chengji = new int[] {分数};
int a = chengji[0]; int b=0;
for (int i = 1; i < chengji.Length; i++)
{ if (chengji[i] > a){ a = chengji[i]; b=i; }
} Console.WriteLine("分数最高的是{0}," + "分数是{1}", name[index], a);
int[] chengji = new int[] {分数};
int a = chengji[0]; int b=0;
for (int i = 1; i < chengji.Length; i++)
{ if (chengji[i] > a){ a = chengji[i]; b=i; }
} Console.WriteLine("分数最高的是{0}," + "分数是{1}", name[index], a);
在vs2013中 Console.WriteLine("四名同学的年龄是:{0}、{1}、{2}、{3}",age[ ],age[ ],age[ ],age[ ]); 这句被识别为错误。
这样本来就是错的- -、、要写成 ,age[0],age[1],age[2],age[3]
这样本来就是错的- -、、要写成 ,age[0],age[1],age[2],age[3]
2015-10-30