使用空格将二元操作符与它的操作数分开。
Use whitespace to help binary operators stand out from their operands.
中给出了成员和非成员二元操作符的良好例子。
The Sales item class offers a good example of member and nonmember binary operators .
所有的二元操作符,除了。点和左括号和左方括号应用空格将其与操作数隔开。
All binary operators except. period and left parenthesis and left bracket should be separated from their operands by a space.
在我们的四则运算表达式里面我们可以利用继承实行从一元到二元操作符的表示,但它实质上会干扰测试。
In our arithmetic expressions we could have used inheritance to get from a unary to a binary operator node, but that would substantially violate the test.
步骤4:所有的操作符都是二元的,也就是说第一个操作数位于操作符之前,第二个操作符位于操作符之后。
Step 4: All operators are binary, which means that the first operand is positioned before the operator, and the second operand is positioned after the operator.
步骤4:所有的操作符都是二元的,也就是说第一个操作数位于操作符之前,第二个操作符位于操作符之后。
Step 4: All operators are binary, which means that the first operand is positioned before the operator, and the second operand is positioned after the operator.
应用推荐