在C#程序里,宣告一个变量,是件很容易的事情。
如下面,宣告一个变量,并赋值:
C#宣告一个变量

 

 int type = 22;
            Console.WriteLine(type);

            bool type1 = false;
            Console.WriteLine(type1);

            string type2 = "Insus.NET";
            Console.WriteLine(type2);

            double type3 = 4.8;
            Console.WriteLine(type3);
Source Code

相关文章:

  • 2021-09-30
  • 2021-12-26
  • 2021-07-12
  • 2021-11-28
  • 2021-05-21
猜你喜欢
  • 2021-06-23
  • 2021-10-08
  • 2022-12-23
  • 2021-12-02
  • 2021-07-13
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案