解题思路:
注意事项:
参考代码:
#include<stdio.h>
int main()
{
char a[1024],b[1024];
int i=0,j=0;
gets(a);
while(a[i]!='\0')
{
if(a[i]=='A'||a[i]=='E'||a[i]=='I'||a[i]=='O'||a[i]=='U'||
a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u')
b[j++]=a[i];
i++;
}
b[j]='\0';
puts(b);
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题8.1 (Java代码)浏览:774 |
C语言程序设计教程(第三版)课后习题11.8 (C语言代码)浏览:604 |
printf基础练习2 (C语言代码)浏览:940 |
【蟠桃记】 (C语言代码)浏览:663 |
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:1323 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:464 |
C语言考试练习题_一元二次方程 (C语言代码)浏览:572 |
核桃的数量 (C语言代码)浏览:870 |
分糖果 (C语言代码)浏览:911 |
图形输出 (C语言代码)浏览:933 |