字面值常量(literal constant),“字面值”是指只能用它的值称呼它,“常量”是指其值不能修改。每个字面值都有相应的类型,3.14是double型,2是int型。
基于72个网页-相关网页
这个程序确实解决了问题,尽管我们可能要一而再、再而三地检查确保恰好有10 个字面值常量2 相乘。
This program solves the problem, although we might double- or triple-check to make sure that exactly 10 literal instances of 2 are being multiplied. Otherwise, we're satisfied.
整型字面值是一个代表整型常量的数字序列。
An integer literal is a sequence of digits representing an integer 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.
应用推荐