必应词典为您提供switch-expression-not-integral的释义,网络释义: 表达式不是整型的;对照;
a裁判把奖金颁给赢得比赛的自行车选手,并向他祝贺。(judge;congratulation;cyclist) The referee the bonus proclaimed for bicycle contestant who wins the competition, and congratulates to him.(judge; congratulation; cyclist)[translate] aswitch expression not integral 交换不是表示积分式[translate]...
正在翻译,请等待...[translate] a自由联想,快乐共享 Free association, joyful sharing[translate] aswitch expression not integral 交换不是表示积分式[translate]
switch()里面的表达式只能是字符或整型 expression not integral 就是表达式不是整数的意思
把char类型值赋给它时会自动转型成float。结果就是在你的switch语句那里报错了,C的switch不支持浮点数的。你另外用一个char 变量来存那个'A', 'B', 'C', 'D' 就行了。比如:char rank;if(ave>=90) rank='A';else if(ave>=80) rank='B';else if(ave>=70) rank='C';else if(...
float score;改为int score;
float ticket_number;改为 int ticket_number;
char sex[10],ch[10],name[10];改为 char sex[10],ch,name[10];或 char sex[10],name[10];int ch;
https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB ...
labeled-statement: case constant-expression : statement default : statementRemarksA switch statement causes control to transfer to one labeled-statement in its statement body, depending on the value of condition.The condition must have an integral type, or be a class type that has an ...