最新回答 / 慕少0559658
Console.WriteLine()与Console.Write()不同,后者不换行,而前者会在打印之后换行。这里使用的是WriteLine,会在打印之后换行,而程序输出结果要求不换行,因此把WriteLine改为Write就可以了。
2022-10-21
最新回答 / 甜甜的西瓜皮皮
判断num[0]是否小于num[x]的数值,如果小于,则将num[x]的值赋值给num[0],并且将name[x]的值也赋值给name[0]。但在此之前需将本小结的数据,创建新的数组,将姓名和成绩分开存储成数组。
2022-10-18
最赞回答 / weixin_慕无忌4124023
string[] name = new string[] { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" }; int[] score = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 }; int max = score[0]; string Name = name[0]; for (int i = 0; i < sc...
2022-10-18
最新回答 / weixin_慕娘0258307
using System;using System.Collections.Generic;using System.Text;namespace projGetMaxScore{ class Program { static void Main(string[] args) { string[,]s={{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{...
2022-09-08
最新回答 / 慕工程9249744
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { double salary = 6000.00;//基本工资 double prize = 3200.00;//奖金 double tax = ...
2022-08-27
最新回答 / 崔勇
①标识符只能由英文字母、数字和下划线组成,不能包含空格和其他字符。②变量名不能用数字开头。③不能用关键字当变量名。看第一条,"#"号,不能出现在变量名中哦搜索复制
2022-07-15
最新回答 / 慕数据3346302
if(num[i]>max) max=num[i]; name=xingming[i];if下面两条语句要用{}括起来,确保两条语句都是受if条件限制,否则只有if下面第一句是受if条件限制的,第二句话会一直执行到for循环最后一次
2022-07-13