lingohey logo

const

:/'kɑnst/
:/'kɒnst/
n.:
常数;恒量
adj.:
恒定的;不变的
网络:
常量;常量定义;取值设为常数
例句
1.
If you get this warning, examine your code to see if it depends on binding rvalues to non-const references.
如果接到警告检查程式码查看是否依系非常参考产生
2.
bool remove(const path& p): This routine attempts to remove the file or directory being referred to by the path p.
boolremoveconstpath&p例程尝试删除路径p引用文件目录
3.
Binding a reference to an R-Value is allowed as long as the reference is bound to a const type.
引用绑定引用静态类型一样也是允许
4.
An rvalue cannot be bound to a non-const reference.
无法非常参考
5.
A Const statement's scope is the same as that of a variable declared in the same location.
Const语句范围相同位置声明变量范围相同
6.
In a similar manner, a liter al integer const ant can be specified as being unsigned by following its value with either U or u.
类似我们可以整型文字常量后面加上uU指定一个无符号
7.
Within a struct declaration, fields cannot be initialized unless they are declared as const or static.
结构声明除非字段声明conststatic否则无法初始
8.
bool exists(const path&): This function checks for the existence of a file.
boolexistsconstpath&函数检查文件扩展
9.
You can fix this bug by editing the gregor. c file's line 79 and removing the string const at the start of that line.
修复这个bug方法编辑gregor.c文件第79,并删除开始部分字符串const
10.
A const field can only be initialized at the declaration of the field.
const字段只能字段声明初始