assignment operator的意思|示意

美 / əˈsainmənt ˈɔpəreitə / 英 / əˈsaɪnmənt ˈɑpəˌretɚ /

[计] 赋值运算符


assignment operator的用法详解

Assignment Operator是指在编程语言中的赋值运算符,具体来说就是把左操作数设置为右操作数的值的运算符。它的运用几乎没有局限,在各种编程语言中都能得到使用,比如C,C++,Java和PHP等等。

Assignment Operator具有如下特点:

(1)它以“=”字符作为运算符;

(2)把值从右操作数赋值给左操作数;

(3)算术运算符以及其他运算符以及函数可以提供右操作数;

(4)它不能用在表达式中,但是可以用在条件表达式中;

(5)它可以使用于任何基本类型(即变量类型、常量类型或者指针类型);

(6)它也可以用于逻辑运算;

(7)它可以把值从变量类型、常量类型或者指针类型中赋值给另一个变量类型、常量类型或者指针类型中。

因此,Assignment Operator在编程语言中有着广泛的应用,它不仅可以用于数据的赋值,还可以用于逻辑运算,从而使程序更加简洁可读。

assignment operator相关短语

1、 copy assignment operator 拷贝赋值运算符,复制赋值运算符,拷贝赋值操作符

2、 compound-assignment operator 复合设定运算子,复合设置运算符

3、 copy-assignment operator 拷贝赋值运算符

4、 move-assignment operator 移动赋值运算符

5、 synthesized assignment operator 合成赋值操作符

6、 additive assignment operator 加法指定运算子

7、 subtraction assignment operator 减法指定运算子

8、 the assignment operator 而分配操作符是

9、 addition assignment operator 加法赋值运算符

assignment operator相关例句

Special member functions the copy constructor, the assignment operator, and the destructor define these operations.

特殊成员函数(复制构造函数 、 赋值操作符和析构函数)可用于定义这些操作.

互联网

When a binary operator is overloaded, the corresponding assignment operator, if any, is also implicitly overloaded.

重载二元运算符时, 也会隐式重载相应的赋值运算符(如果有).

互联网

Explicitly define an assignment operator for the class.

为类显式定义赋值运算符.

互联网

The synthesized assignment operator member wise assigns the right - hand operand to the left.

合成赋值操作符将右 操作数 逐个成员地赋值给左操作数.

互联网

Break long assignments before the assignment operator.

在赋值操作符前将长表达式截断.

互联网

Assignment operator. Tests whether the left - hand operand is not equal to the right - hand.

不等于操作符. 测试左右两边的操作数是否不等.

互联网