C语言中break和continue语句的用法及区别

C语言中break和continue语句的用法及区别

回复
  • 小威哥用户
    [[{"txt": "\u4f7f\u7528break\u8bed\u53e5\u548ccontinue\u8bed\u53e5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u52a0\u7075\u6d3b\u5730\u63a7\u5236\u5faa\u73af\u3002"}], [{"txt": ["\u65b9\u6cd5/\u6b65\u9aa4"]}, {"txt": "break\u7528\u4e8e\u8df3\u51faswitch\u7ed3\u6784\u3002\u5728\u5faa\u73af\u8bed\u53e5\u4e2d\uff0cbreak\u8bed\u53e5\u7528\u4e8e\u76f4\u63a5\u8df3\u51fa\u5faa\u73af\uff0cbreak\u5f80\u5f80\u548cif\u8bed\u53e5\u914d\u5408\u4f7f\u7528\uff0c\u5f53\u68c0\u6d4b\u5230\u6ee1\u8db3\u67d0\u4e2a\u6761\u4ef6\u65f6\uff0c\u5f3a\u884c\u7ed3\u675f\u5faa\u73af\u3002\u5728\u5faa\u73af\u4e2d\uff0cbreak\u53ea\u662f\u7ed3\u675f\u5176\u6240\u5728\u5c42\u7684\u5faa\u73af\uff0c\u5bf9\u5916\u5c42\u5faa\u73af\u6ca1\u6709\u5f71\u54cd\u3002"}, {"txt": "\u6bd4\u5982\uff0c\u7528break\u7f16\u5199\u7a0b\u5e8f\u5c06\u7528\u6237\u8f93\u5165\u7684\u5c0f\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u5c0f\u5199\u5b57\u6bcd\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/5e4e9c2b74ee1c323fae069807f1d8a727334b0e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "continue\u8bed\u53e5\u4e0ebreak\u8bed\u53e5\u4e0d\u540c\uff0c\u5728\u5faa\u73af\u4f53\u5185\u9047\u5230continue\u8bed\u53e5\u65f6\uff0c\u5c06\u8df3\u8fc7\u672c\u5c42\u5faa\u73af\u4f53\u5185continue\u8bed\u53e5\u4e4b\u540e\u7684\u90e8\u5206\u5faa\u73af\u4f53\uff0c\u5e76\u5f00\u59cb\u4e0b\u4e00\u8f6e\u5faa\u73af\uff0c\u5373\u53ea\u7ed3\u675f\u672c\u8f6e\u5faa\u73af\u3002continue\u8bed\u53e5\u4e5f\u901a\u5e38\u548cif\u8bed\u53e5\u914d\u5408\u4f7f\u7528\uff0c\u4ee5\u63a7\u5236\u5728\u7279\u5b9a\u7684\u6761\u4ef6\u4e0b\uff0c\u4ec5\u6267\u884c\u5faa\u73af\u4f53\u7684\u4e00\u90e8\u5206\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528continue\u548c\u4f7f\u7528break\u7c7b\u4f3c\uff0c\u5b83\u53ea\u80fd\u63a7\u5236\u672c\u5c42\u5faa\u73af\uff0c\u5e76\u4e0d\u5f71\u54cd\u5916\u5c42\u5faa\u73af\u3002"}, {"txt": "\u6bd4\u5982\uff0c\u8f93\u5165\u5341\u4e2a\u6574\u6570\uff0c\u7edf\u8ba1\u6b63\u6570\u4e2a\u6570\u5e76\u8ba1\u7b97\u6b63\u6570\u7684\u5e73\u5747\u503c\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/506d92f1d8a7263331329a57c02c56ee7a7f440e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}]]
    2024-11-22
    1楼
    回复

参与评论

游客评论不支持回复他人评论内容,如需回复他人评论内容请