为了账号安全,请及时绑定邮箱和手机立即绑定

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
833人评价 查看评价
9.5 内容实用
9.5 简洁易懂
9.2 逻辑清晰

最新回答 / 慕雪1509670
Console.WrtieLine 单词拼错了,WriteLine
string[,] examInfo = new string[8,2]{{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何晶","93"},{"关欣","85"}};
int score = 0;
string name = "";
for(int i = 0; i < examInfo.GetLongLength(0); i++)
{
//Convert.ToInt32() 字符串强制转换整型
if(score < Convert.ToInt32(examInfo[i,1]))
{
name = examInfo[i,0];
score = Convert.ToInt32(examInfo[i,1]);
}
}
Console.WriteLine("分数最高的是{0},分数是{1}",name,score);
string[,] examInfo = new string[8,2]{{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何晶","93"},{"关欣","85"}};

最赞回答 / 小CP
Console.WriteLine("分数最高的是"+info[x,0]+",分数是"+info[x,1]);“,分数是”逗号应为中文逗号
就 跟这个;好不了了,就不能智能点嘛艾玛
(x++) 就是执行后 x+1

最赞回答 / 慕数据6914329
string[] name = new string []{ "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };            int[] score = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 };你没有加[],for (int i = 0; i < score.Length; i++)不是<=,而是<更改后:using System;using System.Collection...
学完这个课程,感觉可能是网页的原因吧,感觉答案挺死板的。而且出题的人特别爱玩Console.Write和Console.WriteLine这个梗
for (int i = 0; i &lt; tx.GetLongLength(0); i++) {
int score = int.Parse(tx[i, 1]);
if (max &lt; score) { max = score; j++; }
}
Console.WriteLine(&quot;分数最高的是{0},分数是{1}&quot;, tx[j, 0], max);
string[,] tx = { { &quot;吴松&quot;, &quot;89&quot; }, { &quot;钱东宇&quot;, &quot;90&quot; }, { &quot;伏晨&quot;, &quot;98&quot; }, { &quot;陈陆&quot;, &quot;56&quot; }, { &quot;周蕊&quot;, &quot;60&quot; }, { &quot;林日鹏&quot;, &quot;91&quot; }, { &quot;何昆&quot;, &quot;93&quot; }, { &quot;关欣&quot;, &quot;85&quot; } };
int max = 0;
int j = -1;
for (int x = 1;x &lt;= 6;x++ )//请填写for循环结构
{
Console.WriteLine(&quot;Yeah!&quot;);
}
int y = 5;
while (y &gt;=1)//请输入
{
Console.Write(y+&quot; &quot;);
y--;//请输入
}
这个小哥哥讲课很有意思哟
简单整理了一下,应该是比较简单的写法了。
//请完善代码
for(int x=1;x&lt;8;x++)
{
for (int y=1;y&lt;8;y++)
{
string str=x==y||x+y==8?&quot;O&quot;:&quot;.&quot;;
Console.Write(str);

}
Console.WriteLine();
}
这道题也太变态了吧,对新手很不友好啊!蓝瘦香菇!
课程须知
本课程是C#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消