The dot operator fetches its right-hand operand from its left.
点操作符通过它的左操作数取得右操作数。
In particular, the operators return their left-hand operand as their result.
尤其是,这些操作符返回左操作数作为运算结果。
Additional assignment operators that differ by the type of the right-hand operand can be defined for a class type.
可以为一个类定义许多附加的赋值操作符,这些赋值操作符会因右操作符类型不同而不同。
When we use a member function as the right-hand operand of the dot operator, we usually do so to call that function.
通常使用成员函数作为点操作符的右操作数来调用成员函数。
Because the operator returns its left-hand operand, we can combine a sequence of input requests into a single statement.
由于输入操作符返回其左操作数,我们可以将输入请求序列合并成单个语句。
The important thing to keep in mind is that if the left-hand operand is dereferenced, then the value pointed to is changed.
谨记区分的重要方法是:如果对左操作数进行解引用,则修改的是指针所指对象的值;
The dot operator applies only to objects of class type: the left-hand operand must be an object of class type; the right-hand operand must name a member of that type.
点操作符仅应用于类类型的对象:左操作数必须是类类型的对象,右操作数必须指定该类型的成员。
The dot operator applies only to objects of class type: the left-hand operand must be an object of class type; the right-hand operand must name a member of that type.
点操作符仅应用于类类型的对象:左操作数必须是类类型的对象,右操作数必须指定该类型的成员。
应用推荐