当前位置:首页 » 翻译 
  • 匿名
关注:1 2013-05-23 12:21

求翻译:Because someCondition is true, this program prints "1" to the screen. Use the ?: operator instead of an if-then-else statement if it makes your code more readable; for example, when the expressions are compact and without side-effects (such as assignments).是什么意思?

待解决 悬赏分:1 - 离问题结束还有
Because someCondition is true, this program prints "1" to the screen. Use the ?: operator instead of an if-then-else statement if it makes your code more readable; for example, when the expressions are compact and without side-effects (such as assignments).
问题补充:

  • 匿名
2013-05-23 12:21:38
因为someCondition是真实的,这个程序打印“ 1 ”到屏幕上。
  • 匿名
2013-05-23 12:23:18
由于someCondition是真实的,这个节目印刷品“1\"对屏幕。使用? :而不是的操作员,如果然后-声明,如果它使您的代码更加可读;例如,当表示是紧凑和没有副作用(例如任务)。
  • 匿名
2013-05-23 12:24:58
由于someCondition是真实的,这个节目印刷品“1”到屏幕。 使用? : 操作员而不是,如果然后-声明,如果它使您的代码更加可读; 例如,当表示是紧凑和没有副作用 (例如任务)。
  • 匿名
2013-05-23 12:26:38
因为 someCondition 是真的,这个程序将打印到屏幕的"1"。使用?: 运算符而不是如果-那-else 语句如果这能让您的代码更具可读性 ;例如,当表达式均为紧凑且无副作用 (如任务)。
  • 匿名
2013-05-23 12:28:18
因为 someCondition 是真的,这个程序将“1”打印至屏幕。使用?:操作员而非一份如果当时的另外的声明如果它使你的代码变得更可读;例如,表达是紧凑的时和没有副作用地 ( 例如任务 )。
 
 
网站首页

湖北省互联网违法和不良信息举报平台 | 网上有害信息举报专区 | 电信诈骗举报专区 | 涉历史虚无主义有害信息举报专区 | 涉企侵权举报专区

 
关 闭