2020年4月9日

c/c++ 条件语句省略括号写法

摘要: 1.一种是只有一条执行语句 2.一种是以逗号“,”分隔开,以分号“;”结尾 如: #include<iostream> using namespace std; int main() { //定义一个test变量 int for_test=1; if (1) for_test = for_test 阅读全文

posted @ 2020-04-09 16:26 jianW1024 阅读(460) 评论(1) 推荐(0) 编辑

导航