当前位置:网站首页>Multi branch structure

Multi branch structure

2022-07-05 19:38:00 Try some fresh food with a child

1、 Multiple branches
-else if
-switch

2、else if grammar
if( expression ){
sentence 1
}else if( expression 2){
sentence 2
}else{
sentence 3
}

3、switch grammar
switch( Conditional expression ){
case value 1: Code 1;break;
case value 2: Code 2;break;
case value 3: Code 3;break;

default: Code n
7j}

原网站

版权声明
本文为[Try some fresh food with a child]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051935561737.html