最新回答 / z嘘丶
因为C#还是靠自己动手操作更直观,第一章只是将基本背景和编译器操作介绍给你,之后还是要靠自己根据文本教学操作,这样印象更深。建议便做任务边在VS上延伸,如去掉某处一个字段结果会变成什么样子。加油,自学党们!一起努力!
2016-01-09
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
}
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
}
2016-01-08
{
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
}
}
}
在电脑VS2012上可以过,但在这上面,过不去啊。醉了
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
}
}
}
在电脑VS2012上可以过,但在这上面,过不去啊。醉了
2016-01-08
int max=0;int sum=0;string str="";string[,]stu =new string[8, 2]{ { "景珍","90" },...};for(int j = 0;j<8;j++){sum+=Convert.ToInt32(stu[j, 1]);}int avg =sum/8;for(int i=0; i<8;i++){if(Convert.ToInt32(stu[i,1])>avg){str+=stu[i,0]+""; }}Console.WriteLine("平均分是{0},{1}",avg,",高于平均分的有:");Console.Write(str);