亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

C#開發輕松入門

難度入門
時長 4小時43分
學習人數
綜合評分9.40
833人評價 查看評價
9.5 內容實用
9.5 簡潔易懂
9.2 邏輯清晰
static void Main(string[] args)
{
int y=5;
while(y<10)
{
y++;
}
while(y>=1)
{
Console.Write(y+" ");

y--;
}
沒有什么是用中文音譯不了的。
int x = 5;
int y = 5;
int z = 5;
++x;
Console.Write(x);
Console.Write(++y);
Console.Write(++z);
把x++改成++x,把y++改成++y,就可以了
因為:比如給x賦值,
a = x++;a = x;x = x+1;
a = ++x;x = x+1;a = x;
///是文檔注釋,只能寫在類、方法、屬性的前面。不能用來注釋單個變量。
我會告訴你,填了條件就發一種五仁月餅,不填還可以發棗泥月餅和五仁月餅兩種么?
這個不行??!這個就直接是判斷了個男的,女的那個都跳過了。這個只是男的結果,女的達到了,并沒有輸出結果來!
string[,] score = new string[2,8]{{"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關欣"},{"89","90","98","56","60","91","93","85"}};
string x = "0";
int y =0;
for (int i =0; i<8; i++) {
if (int.Parse(x) < int.Parse(score[1,i])) {
x = score[1,i];
y=i;
}
}
Console.Write("分數最高的是{0},分數是{1}", score[0,y],x);
public class Student
{
public Student(string name, int score)
{
Name = name;
Score = score;
}
public string Name { get; set; }
public int Score { get; set; }
}
}
Console.Write("分數最高的是");
foreach(var student in hightestScoreStudents)
{
Console.WriteLine("{0},分數是{1}", student.Name, student.Score);
}
}
}
public static void TheHightestScoreStudent(List<Student> students)
{
var hightestScoreStudents = from student in students
where student.Score ==students.Max(x => x.Score)
select student;
new Student("陳陸",56),
new Student("周蕊",60),
new Student("林日鵬",91),
new Student("何昆",93),
new Student("關欣",85)
};
TheHightestScoreStudent(students);
}
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
List<Student> students = new List<Student>{
new Student("吳松",89),
new Student("錢冬宇",90),
new Student("伏晨",98),
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
這道題有點出得有點坑!不換行還不行了
感嘆號必須在中文狀態下,哈哈哈
課程須知
本課程是C#基礎課程,熱烈歡迎各位小伙伴拍磚吐槽!!
老師告訴你能學到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的語法和程序邏輯

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消