条件操作符(conditional operator)是C++中唯一的三元操作符,它允许将简单的if-else判断语句嵌入表达式中.条件操作符的语法格式为:
基于70个网页-相关网页
... 软件操作程式手册 software manuals 操作员接口软件 operator interface software 条件操作符 conditinal operator; conditional operator ...
基于4个网页-相关网页
附加条件逻辑操作符 Conditional Logical Operators
自定义条件逻辑操作符 User-Defined Conditional Logical Operators ; Defined Conditional Logical Operators
条件语句和操作符 Conditionals and Operators
另一方面,它可以使用在一个带括号的表达式或在第二个表达式在这样的环境条件操作符。
On the other hand, it can be used within a parenthesized expression or within the second expression of a conditional operator in such contexts.
而且由于每个UNIX命令都返回一个指示成功或失败的状态代码,因此,您可以使用任何命令作为“条件”——而不仅仅是使用测试操作符。
And because every UNIX command returns a status code reflecting success or failure, you can use any command as a conditional — not just the test operators.
使用右上角的绿色对勾把第一个数据流操作符连接到第二个,这会建立有条件连接。
Connect the first data flow operator to the second using the green check mark in the upper right corner to make a conditional connection.
应用推荐