• C#基础


    ---恢复内容开始---

    //注释一行
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    //命名空间
    namespace firstDebug
    {
    //类
    class Program
    {
    //主函数,一整个项目,有且只有一个主函数,它是程序的入口
    static void Main(string[] args)
    {
    //开始写代码

    //数据类型 变量名=值;

    int i=0;

    //可以分开写

    //int s;

    s=1;

    //同时定义多个

    int a,b,c;

    b=3;

    //

    double d=1.23d;---结尾加d表示为double类型

    float f=1.23f;

    decimal m=1.23m;

    //

    bool bo=true;

    //

    string s1="你好";

    Console.WriteLine(i);
    Console.ReadLine();
    }
    }
    }

  • 相关阅读:
    数组列简介
    linq的使用
    StringBuilder对象
    使用类来继承接口
    设置函数库并引用
    循环语句
    cut和paste用法
    uniq用法
    shell中数组的应用
    委派
  • 原文地址:https://www.cnblogs.com/yangyue/p/4158421.html
Copyright © 2020-2023  润新知