当前位置:网站首页>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;
}
边栏推荐
- Submit several problem records of spark application (sparklauncher with cluster deploy mode)
- 第6章 DataNode
- Problem - 922D、Robot Vacuum Cleaner - Codeforces
- Investigation report of bench type Brinell hardness tester industry - market status analysis and development prospect prediction
- LeetCode 1640. Can I connect to form an array
- Acwing: Game 58 of the week
- 字节跳动新程序员成长秘诀:那些闪闪发光的宝藏mentor们
- Research Report on market supply and demand and strategy of double drum magnetic separator industry in China
- Base dice (dynamic programming + matrix fast power)
- 300th weekly match - leetcode
猜你喜欢
Codeforces Round #802(Div. 2)A~D
软通乐学-js求字符串中字符串当中那个字符出现的次数多 -冯浩的博客
Base dice (dynamic programming + matrix fast power)
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Chapter 6 datanode
LeetCode 1584. Minimum cost of connecting all points
One hundred questions of image processing (1-10)
Mp4 format details
第三章 MapReduce框架原理
ByteDance new programmer's growth secret: those glittering treasures mentors
随机推荐
LeetCode 1545. Find the k-th bit in the nth binary string
Sublime text code formatting operation
One hundred questions of image processing (11-20)
Chapter 1 overview of MapReduce
Acwing: Game 58 of the week
Research Report of desktop clinical chemical analyzer industry - market status analysis and development prospect prediction
Chapter 5 detailed explanation of consumer groups
LeetCode 1558. Get the minimum number of function calls of the target array
Spark独立集群动态上线下线Worker节点
Chapter 5 namenode and secondarynamenode
业务系统兼容数据库Oracle/PostgreSQL(openGauss)/MySQL的琐事
第2章 HFDS的Shell操作
简单尝试DeepFaceLab(DeepFake)的新AMP模型
Research Report on market supply and demand and strategy of Chinese table lamp industry
LeetCode 1552. Magnetic force between two balls
QT implementation window gradually disappears qpropertyanimation+ progress bar
LeetCode 1557. The minimum number of points that can reach all points
第5章 消费者组详解
Acwing: the 56th weekly match
Soft music -js find the number of times that character appears in the string - Feng Hao's blog