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

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

C#開發輕松入門

難度入門
時長 4小時43分
學習人數
綜合評分9.40
833人評價 查看評價
9.5 內容實用
9.5 簡潔易懂
9.2 邏輯清晰
  • namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ????????????int x = 1;

    ????????????bool a = ++x * x > 3;

    ????????????bool b = a ;

    ????????????Console.WriteLine(a==b);

    ? ? ? ?}

    ? ? }

    }

    查看全部
  • 標識符只能由英文字母、數字和下劃線組成,不能包含空格和其他字符。
    查看全部
  • 賦值從右向左

    查看全部
    0 采集 收起 來源:算法——交換

    2023-03-15

  • Writelone 寫完換行
    write???????? 寫完不換行
    查看全部
    0 采集 收起 來源:C#的常量

    2023-02-28

  • using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ? ? ? ? ? ? string [] t = new string []{"C","Sh","a","rp"};

    ? ? ? ? ? ? foreach(string x in t)//遍歷字符串數組t

    ? ? ? ? ? ??

    ? ? ? ? ? ? {

    ? ? ? ? ? ? ? ? Console.Write(x);

    ? ? ? ? ? ? }

    ? ? ? ? }

    ? ? }

    }

    查看全部
  • using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ? ? ? ? ? ? //聲明整型數組,保存一組整數

    ? ? ? ? ? ? int[] num = new int[] { 3,34,42,2,11,19,30,55,20};

    ? ? ? ? ? ? for(int x = 0;x < num.Length;x++)//循環打印數組中的偶數

    ?????????????{

    ????????????? if(num[x]%2 == 0)

    ?????????????????{

    ????????????????????????Console.Write(num[x]+",");

    ?????????????????}?

    ??????????????}

    ? ? ? ? }

    ? ? }

    }

    查看全部
    0 采集 收起 來源:編程練習

    2023-02-13

  • using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ? ? ? ? ? ? int [] score = new int[]{89,39,100,51,94,65,70};

    ? ? ? ? ? ? Console.Write("不及格的有:");

    ????????????for(int x = 0; x < score.Length;x++)

    ????????????{

    ????????????????if(scroe[x] < 60)

    ????????????????????Console.Write(scroe[x]+",");

    ????????????}

    ? ? ? ? }

    ? ? }

    }

    查看全部

    1. Console,WriteLine=(ture>false);
    2. Console,WriteLine=(ture<false);
    3. int=ture;

    查看全部
  • ????????? double x = (5-3);
    ??????????????? int? y =? 3;
    ???????? stick,write= (x<y);
    查看全部
  • using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ? ? ? ? ? ? for(int x = 1; x <= 12; x++)

    ? ? ? ? ? ? {

    ????????????? ? Console.WriteLine(x + "? ");

    ????????????}

    ? ? ? ? }

    ? ? }

    }

    查看全部
    0 采集 收起 來源:C#中for循環

    2023-02-10

  • using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ????????????int x = 1;//定義變量,初始化變量

    ????????????while(x <= 5)//循環條件

    ????????????{

    ?????????????????Console.WriteLine("加油!");

    ????????????????? ?x++; //自加

    ?? ??????????}

    ? ? ? ? }

    ? ? }

    }

    查看全部
    0 采集 收起 來源:編程練習

    2023-02-10

  • using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

    ? ? class Program

    ? ? {

    ????????int x = 5;

    ????????while(x? >= 1)

    ????????{

    ????????????Console.WriteLine(x+“? ”);

    ????????????x--;

    ????????}

    ????}

    }

    查看全部

舉報

0/150
提交
取消
課程須知
本課程是C#基礎課程,熱烈歡迎各位小伙伴拍磚吐槽?。?/dd>
老師告訴你能學到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的語法和程序邏輯

微信掃碼,參與3人拼團

微信客服

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

幫助反饋 APP下載

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

公眾號

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

友情提示:

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