最新回答 / qq_慕先生330273
string[,] sor=new string[,] {{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何昆","93"},{"关欣","85"} }; //Console.WriteLine(sor.GetLength(0)); int Max = 0; strin...
2020-07-24
最赞回答 / 幕布斯9103858
static void Main(string[] args) { //声明整型数组,保存一组整数 int[] num = new int[] { 3,34,43,2,11,19,30,55,20}; bool has7=false;//请完善代码,判断数组中有没有7的整倍数 for(int i=0; i<num.Length;i++) { if(...
2020-07-24
感觉两节内容可以用一段代码搞定
把max当索引,轻轻松松
for(i=0;i<score.Length;i++)
{
if(score[i]>=score[max])
{
max = i;
}
}
把max当索引,轻轻松松
for(i=0;i<score.Length;i++)
{
if(score[i]>=score[max])
{
max = i;
}
}
2020-07-23
核心代码
for(i=0;i<score.Length;i++)
{
if(score[i]>=score[max])
{
max = i;
}
}
for(i=0;i<score.Length;i++)
{
if(score[i]>=score[max])
{
max = i;
}
}
最新回答 / qq_慕斯卡1442426
int sore[]=new int={90,65,88,70,46,81,100,68}; 这一行后面的"="号不需要 int smu=0; 这个定义了没用上可以删除
2020-07-20
最新回答 / qq_慕先生330273
string[,] sor=new string[,] {{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何昆","93"},{"关欣","85"} }; //Console.WriteLine(sor.GetLength(0)); int Max = 0; strin...
2020-07-20
vs2019官方下载链接https://visualstudio.microsoft.com/zh-hans/vs/
个人使用选第一个就行
个人使用选第一个就行
2020-07-15
已采纳回答 / 盲纵
i和j都等于0的话符合if里面i==j的条件会打印出一个O,然后j经过7次循环最后值为6,此时i=0,j=6不符合i+j==8,输出"."所以第一行只会有一个O第二个外循环开始时,i=1,j=0第一个位置再输出"."问题就出来了<...图片...>
2020-07-04