当前位置:网站首页>Error: case label `15 'not within a switch statement
Error: case label `15 'not within a switch statement
2022-07-06 16:44:00 【HBUcs2020】
error : When switch( Variable / value ) Statement by semicolon ( ; ) At the end of ,C In language case label Use switch case Statement to C Language appears .
#include <stdio.h>
int main(void) {
int choice = 2;
switch(choice)
{
case 1:
printf("Case 1\n");
break;
case 2:
printf("Case 2\n");
break;
case 3:
printf("Case 3\n");
break;
case 4:
printf("Case 4\n");
break;
default:
printf("Case default\n");
}
return 0;
}
边栏推荐
- 两个礼拜速成软考中级软件设计师经验
- 第5章 NameNode和SecondaryNameNode
- LeetCode 1551. Minimum operand to make all elements in the array equal
- OneForAll安装使用
- Li Kou: the 81st biweekly match
- SF smart logistics Campus Technology Challenge (no T4)
- Two weeks' experience of intermediate software designer in the crash soft exam
- (lightoj - 1323) billiard balls (thinking)
- 第6章 Rebalance详解
- The concept of spark independent cluster worker and executor
猜你喜欢
MP4格式详解
ByteDance new programmer's growth secret: those glittering treasures mentors
Base dice (dynamic programming + matrix fast power)
LeetCode 1641. Count the number of Lexicographic vowel strings
第三章 MapReduce框架原理
QT style settings of qcobobox controls (rounded corners, drop-down boxes, up expansion, editable, internal layout, etc.)
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Two weeks' experience of intermediate software designer in the crash soft exam
JS encapsulates the method of array inversion -- Feng Hao's blog
Cmake Express
随机推荐
Raspberry pie 4B installation opencv3.4.0
The concept of spark independent cluster worker and executor
图像处理一百题(11-20)
Summary of FTP function implemented by qnetworkaccessmanager
Li Kou - 298th weekly match
Codeforces Global Round 19
LeetCode 1558. Get the minimum number of function calls of the target array
Gridhome, a static site generator that novices must know
Research Report on hearing health care equipment industry - market status analysis and development prospect prediction
Chapter 5 yarn resource scheduler
Market trend report, technical innovation and market forecast of China's desktop capacitance meter
Install Jupiter notebook under Anaconda
Solve the single thread scheduling problem of intel12 generation core CPU (II)
新手必会的静态站点生成器——Gridsome
Discussion on QWidget code setting style sheet
Codeforces Round #800 (Div. 2)AC
Educational Codeforces Round 122 (Rated for Div. 2)
China double brightening film (dbef) market trend report, technical dynamic innovation and market forecast
Chapter 2 shell operation of hfds
Spark independent cluster dynamic online and offline worker node