C# - CS1.4 编程规范

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:32   2680   0
/*
 @project : CS1.4 编程规范
 @filename : CS1.4.cs
 @author : 鞠宪庆 Tony
 @date : 2018-10-22
 @description : 

 1.4.1 关键字

 abstract as 
 base bool break byte 
 case catch char checked class const continue
 decimal default delegate do double 
 else enum event explicit extern
 false finally fixed float for foreach 
 goto 
 if implicit in int interface internal is
 lock long 
 namespace new null
 object operator out override 
 params private protected public 
 readonly ref return 
 sbyte sealed short sizeof 
 stackalloc static string struct switch
 this throw true try typeof
 uint ulong unchecked unsafe ushort using 
 virtual void volatile while

 1.4.2 命名规则

 1.4.3 注释方法

 1.4.4 

*/

using System;
//using System.Math;

public class Program
{
 public static void Main(string[] args)
 {
  Console.WriteLine("Hello, World!");
  sbyte a = 100;
  char b = '0';
  Console.WriteLine(a + b); // 148
  Console.WriteLine(System.Math.PI); // 3.14159265358979
  Console.WriteLine(System.Math.E); // 2.71828182845905
 }
}

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP