ex-03-04

来自「Programming Csharp Source Code(代码) Prog」· 代码 · 共 18 行

TXT
18
字号
//Example 03-04: Using symbolic constants

class Values
{
   static void Main()
   {
      const int FreezingPoint = 32;   // degrees Farenheit
      const int BoilingPoint = 212;

      System.Console.WriteLine("Freezing point of water: {0}", 
            FreezingPoint );
      System.Console.WriteLine("Boiling point of water: {0}", 
            BoilingPoint );
      //BoilingPoint = 21;   

   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?