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:所有的操作符都是二元的,也就是说第一个操作数位于操作符之前,第二个操作符位于操作符之后。
The syntax is OK in the sense of, it is an operand, an operator, an operand, so syntactically it's OK.
这里的语法应该是好的,有个运算对象,一个运算符,另外一个运算对象,因此语法上是没错的。
Select an operator for this rule. The list of available operators will change depending on the operand you selected in the previous section.
请选择一个此规则的运算符。根据您在上一节中所选的操作数,可用运算符的列表将发生更改。
Because the operator returns its left-hand operand, we can combine a sequence of input requests into a single statement.
由于输入操作符返回其左操作数,我们可以将输入请求序列合并成单个语句。
Unlike most other operators, the right operand of the dot (". ") operator is not an object or value; it is the name of a member.
与大多数其他操作符不同,点操作符(“。”)的右操作数不是对象或值,而是成员的名字。
For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.
对于类型转换运算符,操作数或返回类型必须是类或结构的数据类型。
An alternative is to use the format operator, %. When applied to integers, % is the modulus operator. But when the first operand is a string, % is the format operator.
另外一个方法就是用格式运算符,也就是百分号%。在用于整数的时候,百分号%是取余数的运算符。但当第一个运算对象是字符串的时候,百分号%就成了格式运算符了。
A unary operator is an operator that operates on a single operand.
“一元运算符”是一种对单个操作数进行运算的运算符。
When we use a member function as the right-hand operand of the dot operator, we usually do so to call that function.
通常使用成员函数作为点操作符的右操作数来调用成员函数。
An operator or operand in a computer instruction.
计算机指令中的操作符或操作数。
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 fetches its right-hand operand from its left.
点操作符通过它的左操作数取得右操作数。
The result of the unary - operator is the negative of its (promoted) operand. The integer promotions are performed on the operand, and the result has the promoted type.
因此减号操作符的运算结果类型依赖于操作数被提升之后的类型。
In addition, an operator can change the value of an operand. This is called a side effect.
除此以外,一个运算符可改变运算对象的值,这叫作“副作用”。
In addition, an operator can change the value of an operand. This is called a side effect.
除此以外,一个运算符可改变运算对象的值,这叫作“副作用”。
应用推荐