最新回答 / ILIKE学习
int[] fs = new int[4]; string[] name = new string[4]; int max = fs[0]; string maxname = null; int sum = 0; for (int i = 0; i < name.Length; i++) { Console.Writ...
2018-09-19
最新回答 / masterintel
using System;using System.Collections.Generic;using System.Text;namespace projGetMaxScore{ class Program { static void Main(string[] args) { //语数外三科 可以用二维数组来写 //{{语文成绩,数学成绩,英语成绩}} int[,] score = new int[5,...
2018-09-17
最新回答 / Lagerstroemia0106
Console.Write("我的工资是{0}, 我的税后工资是{1}" ,salary + prize, salary+prize-tax);
2018-09-17
string[] name={"吴松","钱东宇","伏晨","陈陆","周茹","林日鹏","何昆","关欣"};
int[]score={89,90,98,56,60,91,93,85};
int Max;
Max=score[0];
int index=0;
for(int i=1;i<score.Length;i++)
{
if(score[i]>Max)
{
Max=score[i];
index=i;
}
}
Console.WriteLine ("分数最高的是" + name[index] + ",分数是" + Max);
int[]score={89,90,98,56,60,91,93,85};
int Max;
Max=score[0];
int index=0;
for(int i=1;i<score.Length;i++)
{
if(score[i]>Max)
{
Max=score[i];
index=i;
}
}
Console.WriteLine ("分数最高的是" + name[index] + ",分数是" + Max);
string text = (year%=4) == 0 ?"闰年":"平年";括号的妙用,加上了就好理解了
2018-09-16
最新回答 / 慕粉小萌新
max 不是关键字,用到max 是因为要查找最高分啊代码供参考namespace projGetMaxScore{ class Program { static void Main(string[] args) { string[]names={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"}; int[]score={89,90,98,56,60,91,93,88}; int max=0...
2018-09-12
最新回答 / Angela单单
string[] name = new string[8] { "景珍",
"林惠洋", "成蓉", "洪南昌", "龙玉民", "单江开", "田武山", "王三明" }; int[] score = new int[8] {
90,65,88,70,46,81,100,68 }; int sum = 0, avg; int e = 0; for (int i = 0; i <
score.Length; i...
2018-09-11