博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
spss中个案和变量_错误:C中的个案值重复
阅读量:2532 次
发布时间:2019-05-11

本文共 1672 字,大约阅读时间需要 5 分钟。

spss中个案和变量

The error: duplicate case value occurs in C programming, if there are two duplicate case values in the .

错误:如果在有两个重复的case值,则在C编程中会出现重复的case值。

Consider the below program – In this program, there are two case values, which are same. "Case 2" exists two times in the program.

考虑下面的程序–在该程序中,有两个大小写相同的值。 “情况2”在程序中存在两次。

#include 
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; case 2: printf("Case 5\n"); break; default: printf("Case default\n"); } return 0;}

Output

输出量

prog.c: In function ‘main’:prog.c:19:6: error: duplicate case value      case 2:      ^~~~prog.c:10:6: error: previously used here      case 2:      ^~~~

How to fix?

怎么修?

To fix the error: duplicate case value in C language, either remove the duplicate case and its block or change the duplicate case value.

解决该错误:C语言中的重复案例值 ,请删除重复案例及其块,或者更改重复案例值。

Correct code – Here, I am removing the duplicate case "Case 2" which is exist second time in the program.

正确的代码 –在这里,我要删除程序中第二次存在的重复案例“案例2”

#include 
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;}

Output

输出量

Case 2

翻译自:

spss中个案和变量

转载地址:http://fzozd.baihongyu.com/

你可能感兴趣的文章
element的form表单中如何一行显示多el-form-item标签
查看>>
SQL Server两种分页的存储过程介绍
查看>>
09 audio和vedio标签
查看>>
Jmeter实现线程阶梯式加压
查看>>
Java 反射 getFields() vs getDeclaredFields ()
查看>>
DP题 总结 [更新中]
查看>>
python安装教学
查看>>
JQuery制作简单的网页导航特效
查看>>
操作系统简述
查看>>
设计模式大总结2-结构型模式
查看>>
【Python】不定期更新学习小问题整理
查看>>
Zico源代码分析:执行启动过程分析和总结
查看>>
Android之Http通信——1.初识Http协议
查看>>
hdu5044(二分)
查看>>
静态路由、缺省路由的作用
查看>>
linux快捷键绝对路径相对路径讲解
查看>>
又漏一次
查看>>
dede模板中plus文件路径使用方法
查看>>
xml解析demo使用
查看>>
python使用模板手记
查看>>