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

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
828人评价 查看评价
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#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

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

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