操作符的结合性定义了相同优先级操作符组合的顺序(从右至左或从左至右)。
The associativity of an operator defines the order in which operators of the same precedence are grouped (right-to-left or left-to-right).
如果字符是个操作符,弹出(pop)操作符,直至遇见开括号(openingparenthesis)、优先级较低的操作符或者同一优先级的右结合符号。
If the character is an operator, pop operators until you reach an opening parenthesis, an operator of lower precedence, or a right associative symbol of equal precedence.
与大多数其他操作符不同,点操作符(“。”)的右操作数不是对象或值,而是成员的名字。
Unlike most other operators, the right operand of the dot (". ") operator is not an object or value; it is the name of a member.
可以为一个类定义许多附加的赋值操作符,这些赋值操作符会因右操作符类型不同而不同。
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.
点操作符通过它的左操作数取得右操作数。
The dot operator fetches its right-hand operand from its left.
属性来指定诸如左尖括号和右尖括号等分隔符,以封装对象名称。
Properties to specify delimiters such as a left bracket and a right bracket to encapsulate the object name.
点操作符仅应用于类类型的对象:左操作数必须是类类型的对象,右操作数必须指定该类型的成员。
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.
应用推荐