不知道问题出在哪里
#include<stdio.h>
int is vowel(char c)
{ int is;
switch(c)
{case 'a';
case"e";
case"i";
case"o";
case"u";
is=1;
break;
default:is=0;
}
return is;
}
三个问题:
1、字符使用双引号,改为单引号;
2、case 'a':后面是冒号,不是分号
3、is vowel之间没有空格
#include<stdio.h>
int isvowel(char c) {
int is;
switch(c) {
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
is=1;
break;
default:
is=0;
}
return is;
}
有帮助请采纳
case 'a'后边都是冒号,把分号改掉