当前位置:网站首页>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;
}
边栏推荐
- Native JS realizes the functions of all selection and inverse selection -- Feng Hao's blog
- LeetCode 1984. Minimum difference in student scores
- Codeforces Round #802(Div. 2)A~D
- Business system compatible database oracle/postgresql (opengauss) /mysql Trivia
- QT realizes window topping, topping state switching, and multi window topping priority relationship
- Li Kou: the 81st biweekly match
- Research Report on hearing health care equipment industry - market status analysis and development prospect prediction
- Acwing: the 56th weekly match
- Tert butyl hydroquinone (TBHQ) Industry Research Report - market status analysis and development prospect forecast
- 提交Spark应用的若干问题记录(sparklauncher with cluster deploy mode)
猜你喜欢

本地可视化工具连接阿里云centOS服务器的redis

Codeforces Round #799 (Div. 4)A~H

Sublime text code formatting operation

字节跳动新程序员成长秘诀:那些闪闪发光的宝藏mentor们

解决Intel12代酷睿CPU单线程只给小核运行的问题

Simple records of business system migration from Oracle to opengauss database

Gridhome, a static site generator that novices must know

LeetCode 1584. Minimum cost of connecting all points

JS encapsulates the method of array inversion -- Feng Hao's blog

Li Kou - 298th weekly match
随机推荐
Market trend report, technical innovation and market forecast of tabletop dishwashers in China
第7章 __consumer_offsets topic
Codeforces Round #798 (Div. 2)A~D
SQL快速入门
视频压缩编码和音频压缩编码基本原理
Spark independent cluster dynamic online and offline worker node
Market trend report, technological innovation and market forecast of desktop electric tools in China
Remove the border when input is focused
MP4格式详解
Spark独立集群动态上线下线Worker节点
ByteDance new programmer's growth secret: those glittering treasures mentors
Li Kou: the 81st biweekly match
Market trend report, technical innovation and market forecast of double-sided foam tape in China
Simply try the new amp model of deepfacelab (deepfake)
解决Intel12代酷睿CPU单线程只给小核运行的问题
Cmake error: could not create named generator visual studio 16 2019 solution
两个礼拜速成软考中级软件设计师经验
LeetCode 1551. Minimum operand to make all elements in the array equal
Spark的RDD(弹性分布式数据集)返回大结果集
LeetCode 1545. Find the k-th bit in the nth binary string