24 常量和常量的定义 常量分为两种: 字面常量(literal constant ):数据的字面形式定义 它的数据类型和值.
基于372个网页-相关网页
类字面常量 class literals
以字面常量取代魔法数 Replace Magic Number with Symbolic Constant ; ReplaceMagicNumberwithSymbolicConstant
用字面常量代替魔数 replace magic number with symbolic constant
字面值常量 literal constant
字面意义上的常量 literal constant
整型字面值是一个代表整型常量的数字序列。
An integer literal is a sequence of digits representing an integer constant.
虚数字面值是复数型常量的虚数部分的十进制表示。
An imaginary literal is a decimal representation of the imaginary part of a complex constant.
字符串字面值表示由字符序列构成的字符串常量。有两种格式:原始字符串字面值和解释字符串字面值。
A string literal represents a string constant obtained from concatenating a sequence of characters. There are two forms: raw string literals and interpreted string literals.
应用推荐