⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 l5.1e

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1E
字号:
#printWrite a program that counts the number of vowels in its input (excluding 'y').  Don't forget to definethe value of EOF at the beginning of your program.#once #create RefThis line contains some vowels, includingthe letter 'y'. It also has a capital letter, I think.#usera.out <Ref >testgrep 28 test >/dev/null#succeedHere is one solution. #include <stdio.h>main(){	int nv, c;	nv = 0;	while ((c = getchar()) != EOF)		if (c=='a' || c=='e' || c=='i' || c=='o' || c=='u'		 || c=='A' || c=='E' || c=='I' || c=='O' || c=='U')			nv++;	printf("%d\n", nv);}#failDid you remember capital letters?#log#next5.1f 10

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -