Zhigang Chen
switch语句使用注意事项
switch语句使用注意事项
Created
2025-05-22
|
Updated
2025-06-01
|
Post Views:
switch
语句往往有多个
case
,
这时候要注意每个
case
结束后及时
break
,否则case逻辑穿透出错
Author:
Zhigang Chen
Link:
https://chenzhigang00.github.io/2025/05/22/switch语句使用注意事项/
Copyright Notice:
All articles on this blog are licensed under
CC BY-NC-SA 4.0
unless otherwise stated.
C/C++
Previous
curl使用注意事项
用curl时需要对中文参数进行 URL 编码
Next
C/C++ 指针使用前必须做的事
指针使用前必须分配内存空间啊!
Related Articles
2025-05-22
C/C++ 指针使用前必须做的事
指针使用前必须分配内存空间啊!
Zhigang Chen
我的博客
Articles
20
Tags
13
Categories
0
Follow Me
Announcement
This is my Blog
Recent Posts
dfs
2025-05-31
栈
2025-05-31
链表
2025-05-30
队列
2025-05-30
二分
2025-05-28