level 12
黑曼巴LGLG
楼主
#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
int i,n;
char a[90];
while (1)
{
n=0;
gets(a);
for (i=0;i<strlen(a);i++)
{
switch (a[i])
{
case 'a':
case 'A':
case 'e':
case 'E':
case 'i':
case 'I':
case 'o':
case 'O':
case 'u':
case 'U':n++;break;
}
}
printf("%d\n",n);
}
return 0;
}
这个程序输出超限。。。。肿么修改啊???????
2014年11月28日 00点11分
1
#include<string.h>
#include<ctype.h>
int main()
{
int i,n;
char a[90];
while (1)
{
n=0;
gets(a);
for (i=0;i<strlen(a);i++)
{
switch (a[i])
{
case 'a':
case 'A':
case 'e':
case 'E':
case 'i':
case 'I':
case 'o':
case 'O':
case 'u':
case 'U':n++;break;
}
}
printf("%d\n",n);
}
return 0;
}
这个程序输出超限。。。。肿么修改啊???????