6、赋值操作符(assignment operator):同复制构造函数一样,如果在类体中没有定义赋值操作符,编译器也会为我们合成一个赋值操作符。它会执行逐个成员复制:
基于1182个网页-相关网页
copy assignment operator 拷贝赋值运算符 ; 复制赋值运算符 ; 拷贝赋值操作符
compound-assignment operator 复合设定运算子 ; 复合设置运算符
copy-assignment operator 拷贝赋值运算符
move-assignment operator 移动赋值运算符
synthesized assignment operator 合成赋值操作符
additive assignment operator 加法指定运算子
subtraction assignment operator 减法指定运算子
the assignment operator 而分配操作符是
computed assignment operator 运算赋值运算符
以上来源于: WordNet
So you don't have to use the assignment operator.
所以你并不需要使用赋值运算符。
Everything to the left of the assignment operator.
赋值操作符左边的所有内容。
Everything to the right of the assignment operator.
赋值操作符右边的所有内容。
Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.
赋值操作符把右边的东西,复制到左边。
So this is the equality operator, whereas the single equal sign is the assignment operator.
所以这是相等操作符,然而那个单等号是一个赋值运算符。
The equal sign is really called the "assignment operator."
那个等号其实是个“赋值运算符“
应用推荐