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

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
828人评价 查看评价
9.5 内容实用
9.5 简洁易懂
9.2 逻辑清晰
变量的值可以变,但变量的类型不能变
4个小时的课程,简短干练,适合入门
string temp;
temp = today;
today = tomorrow;
tomorrow = temp;
//请在这里补充代码,实现变量today和tomorrow的交换
hahahahahah 笑死我了

using System;
using System.Collections.Generic;
using System.Text;

namespace Test
{
class Program
{
static void Main(string[] args)
{
int x=1;
bool a = ++x * x > 3;
Console.WriteLine(a);
}
}
}
int x = 5;
int y = 5;
int z = 5;

Console.Write(++x);
Console.Write(++y);
Console.Write(++z);
学完了 thankyou
程序先运行外部框架,把输入值为5的程序置于输出值为6的框架内部,使得先运行输出值为6的即可
{if (x >= 5)
{ Console.WriteLine("5");
}
}
else
if (y >= 6)
Console.WriteLine("6");
else
Console.WriteLine("7");
}
}
}
static void Main(string[] args)
{
for(int i=0;i<7;i++)
{
for(int j=0;j<7;j++)
{
char text = (j==i || j==6-i)?'O':'.';
Console.Write(text);
}
Console.WriteLine();
}
string[,] list = new string[,]{{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何昆","93"},{"关欣","85"}}; string name = ""; int score = 0;for (int i = 0; i < list.GetLength(0)-1; i++) {if (int.Parse(list[i, 1]) > score) {name = list[i, 0];score = int.Parse(list[i, 1]);}};
string[,] nameScoreArr = new string[4,2]{{"吴松","89"},{"钱东","90"},{"周蕊","98"},{"关欣","78"}};
int maxIndex = 0;
for (int x=1;x<nameScoreArr.GetLongLength(0);x++) {
if (int.Parse(nameScoreArr[x,1]) > int.Parse(nameScoreArr[maxIndex,1])) {
maxIndex = x;
}
}
课程须知
本课程是C#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

意见反馈 帮助中心 APP下载
官方微信
友情提示:

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

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消