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

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

C#開發輕松入門

難度入門
時長 4小時43分
學習人數
綜合評分9.40
833人評價 查看評價
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;
}
}
switch的方法有點簡單,應該再詳細說明一下,比如case的的語句塊{}以及不加語句塊的區別,加了語句塊 可以申明局部相同的變量等。。
這等于有問題吧?還是顯示問題,怎么成= 這個是賦值 兩個= = 才是運算符
應該是寫 y%=2;
課程須知
本課程是C#基礎課程,熱烈歡迎各位小伙伴拍磚吐槽??!
老師告訴你能學到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的語法和程序邏輯

微信掃碼,參與3人拼團

微信客服

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

幫助反饋 APP下載

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

公眾號

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

友情提示:

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

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消