解题思路: 注意事项: 参考代码: #include<stdio.h> #include<string.h> int main() { int i; char str[100], c; scanf("%s", str); for (i = 0; str[i]; i++) { c = str[i]; if (c == 'a' || c == 'o' || c == 'e' || c == 'i' || c == 'u') { printf("%d", i + 1); break; } } if (!str[i]) printf("0"); return 0; }
0.0分
0 人评分
a+b浏览:433 |
核桃的数量 (C语言代码)浏览:683 |
1035 题解浏览:788 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:582 |
C语言训练-排序问题<1> (C语言代码)浏览:355 |
C语言程序设计教程(第三版)课后习题5.8 (C语言代码)浏览:645 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:508 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)简单版浏览:789 |
WU-蛇行矩阵 (C++代码)浏览:641 |
Manchester- Hello, world!浏览:13107 |