const 常用
双语例句
1. The value assigned to a const cannot be reassigned.
赋给常数的值不能被重新赋值。
2. Use const to declare a variable that will not change.
使用常数来声明一个不会改变的变量。
3. Qualifying a method's formal parameter as const
将一个方法的形参设置为常量
4. In JavaScript, const is used to define a constant variable.
在JavaScript(客户端脚本语言)中,const用于定义一个常量变量。
5. Embedding const ants in code is obviously foolish.
在代码中嵌入常量显然是愚蠢的。
6. Function objects are passed by reference to const ; function pointers are passed by value.
函数对象以常量引用的方式传递;函数指针则以值的方式传递。
7. const variables must be initialized at the time of declaration.
常数变量必须在声明时初始化。
8. New books const an arm and a leg!
新书真是太贵了!
9. You declare a class constant with the const keyword.
用const关键字声明类常量。
10. If you don't need to change it, use const reference.
如果你不需要改变它,使用常量引用。
11. Your normal habit when passing an argument to a function should be to pass by const reference.
当给函数传递参数时,你要养成的良好习惯是传递常量引用。
12. Function objects are passed by reference to const; function pointers are passed by value.
函数对象以常量引用的方式传递; 函数指针则以值的方式传递.
13. Notice that the API_KEY variable is declared as a const.
请注意,API_KEY变量被声明为const。
14. You cannot declare a const without initializing it.
你不能在没有初始化的情况下声明一个常数。
近义词
1. n. 常量,常数