首页 > 其他 > 详细

130-if else语句

时间:2018-11-16 15:47:25      阅读:128      评论:0      收藏:0      [点我收藏+]

分支-if语句

if else语法
if(<test>)
<code executed if <test> is true>
else
<code executed if <test> is false>

如果if和else要执行的代码有多行,可以加上{}组成一个块

if(<test>){
<code executed if <test> is true>
}else{
<code executed if <test> is false>
}

  

130-if else语句

原文:https://www.cnblogs.com/wuxiaohui1983/p/9969624.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!