C语言:break、continue、return在switch语句中的跳转关系
2017-03-01 13:55
691 查看
void fun1() { char Variable; Variable = xx; switch (Variable) { case Value1: 代码1; break;//跳出switch循环:即直接跳到代码5(第22行) case Value2: 代码2; continue;//跳出本次switch循环:即直接跳回switch处(第5行) case Value3: 代码3; return;//跳出fun1()函数 default: 代码4; break; } 代码5; }
相关文章推荐
- 04-01 Java switch、for、while、do while语句,循环嵌套,跳转语句break、continue、return
- 4 Java基础语法(switch语句,循环语句(for,while),控制跳转语句(break,return,continue))
- c语言有4个跳转语句return、goto、break、continue
- C语言中流程控制语句(if,switch,for,while,do-while,continue,break,return)
- [引]C#参考 跳转语句(break,continue,goto,return,throw)
- C#参考 跳转语句(break,continue,goto,return,throw)
- try..catch..finally块中的跳转语句(return,break,continue)使用注意事项
- 跳转语句:break、continue和return
- javascript跳转语句 break continue return
- C#跳转语句(break,continue,return)
- C# 跳转语句(break,continue,goto,return,throw)
- C# 跳转语句(break,continue,goto,return,throw)
- C#参考 跳转语句(break,continue,goto,return,throw)
- C# 跳转语句(break,continue,goto,return,throw)
- C语言之分支和跳转 switch和break、goto语句
- C# 跳转语句(break,continue,goto,return,throw)
- [引]C#参考跳转语句(break,continue,goto,return,throw)
- C语言控制语句总结(if else for switch while break continue)
- if,continue,break,while,do-while, switch,return,foreach,for等条件语句的使用
- 几个跳转语句的介绍:break语句,continue语句,return语句。