l35.1a
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1A 代码 · 共 36 行
1A
36 行
#printWrite a program which prints the number of vowels(instances of 'a', 'e', 'i', 'o', and 'u')in the input.#once #create Refhoboken harrison newark roseville avenue grove streeteast orange brick church orange highland avenuemountain station south orange maplewood millburn short hillssummit chatham madison convent station morristownnew providence murray hill berkeley heightsgillette stirling millington lyons basking ridgebernardsville far hills peapack gladstone#usera.out <Ref >xxxgrep 109 xxx >/dev/null#succeed/* a possible solution */ #include <stdio.h>main(){ int k, c; k = 0; while ((c = getchar()) != EOF) switch (c) { case 'a': case 'e':case 'i': case 'o': case 'u': k++; break; } printf("%d\n", k);}#log#next37.1a 10
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?