首页 > 代码库 > Basics

Basics

Basics

1、You can declare multiple constants or multiple variables on a single line, separated by commas:

  

2、You can use almost any character you like for constant and variable names, including Unicode characters:

  

  当声明一个变量后,你无法改变其类型,也无法从const发为非const。

3、注释可以多行嵌套:

  

4、Semicolons are required, however, if you want to write multiple separate statements on a single line:

  

5、通过min、max属性可以获得一个类型的最大最小值。

    

6、Int类型的数据范围随平台的不同而不同:

  

7、Numeric Literals

  

8、带指数的浮点数

  

9、