当前位置:网站首页>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;
}
边栏推荐
- Simply try the new amp model of deepfacelab (deepfake)
- LeetCode 1550. There are three consecutive arrays of odd numbers
- Research Report on market supply and demand and strategy of China's four flat leadless (QFN) packaging industry
- 原生js实现全选和反选的功能 --冯浩的博客
- 第6章 DataNode
- Codeforces Round #800 (Div. 2)AC
- (lightoj - 1370) Bi shoe and phi shoe (Euler function tabulation)
- Research Report of desktop clinical chemical analyzer industry - market status analysis and development prospect prediction
- Codeforces Round #803 (Div. 2)A~C
- Educational Codeforces Round 122 (Rated for Div. 2)
猜你喜欢

Tree of life (tree DP)

LeetCode 1020. Number of enclaves

LeetCode 1584. Minimum cost of connecting all points

第6章 Rebalance详解

Chapter 5 detailed explanation of consumer groups

Audio and video development interview questions

Install Jupiter notebook under Anaconda

解决Intel12代酷睿CPU单线程调度问题(二)

ffmpeg命令行使用

Local visualization tools are connected to redis of Alibaba cloud CentOS server
随机推荐
Mp4 format details
JS time function Daquan detailed explanation ----- AHAO blog
第6章 DataNode
Base dice (dynamic programming + matrix fast power)
(lightoj - 1349) Aladdin and the optimal invitation (greed)
Market trend report, technological innovation and market forecast of double door and multi door refrigerators in China
Li Kou - 298th weekly match
Codeforces Round #802(Div. 2)A~D
ffmpeg命令行使用
(lightoj - 1323) billiard balls (thinking)
Hbuilder x format shortcut key settings
Business system compatible database oracle/postgresql (opengauss) /mysql Trivia
Codeforces Global Round 19
软通乐学-js求字符串中字符串当中那个字符出现的次数多 -冯浩的博客
Chapter III principles of MapReduce framework
LeetCode 1558. Get the minimum number of function calls of the target array
LeetCode 1551. Minimum operand to make all elements in the array equal
Ffmpeg command line use
Spark的RDD(弹性分布式数据集)返回大结果集
js时间函数大全 详细的讲解 -----阿浩博客