switch语句2
来源:互联网 发布:p2p网络投资理财 编辑:程序博客网 时间:2024/04/30 23:33
#include<iostream>using namespace std;int main (){ char ch;int aCnt = 0,eCnt = 0,iCnt = 0,oCnt = 0,uCnt = 0; int otherCnt = 0;while(cin >> ch){ switch(ch){ case 'A':case 'a':++aCnt;break;case 'E':case 'e':++eCnt; break;case 'I':case 'i':++iCnt;break;case 'O':case 'o':++oCnt;break;case 'U':case 'u':++uCnt;break;default :++otherCnt;break;}}cout << "Number of vomel a: \t" << aCnt << '\n' << "Number of vomel e: \t" << eCnt << '\n' << "Number of vomel i: \t" << iCnt << '\n' << "Number of vomel o: \t" << oCnt << '\n' << "Number of vomel u: \t" << uCnt << '\n' << "Number of vomel other: \t" << otherCnt << endl; return 0;}
0 0
- switch语句2
- switch语句2
- switch语句171017(2)
- C#的switch语句(2)
- switch语句
- switch语句
- switch语句
- switch语句
- switch语句
- Switch语句
- switch语句
- switch语句
- switch语句
- switch语句
- switch语句
- switch语句
- switch语句
- switch语句
- switch语句
- 多线程环境下,基本增减赋值操作的原子性实验[atomic,mutex]
- Android Bluetooth蓝牙开发:Bluetooth蓝牙设备之间的连接建立(3)
- 扩容PV
- vim下使用ctags+taglist
- switch语句2
- App国际化过程中无法生成XLIFF文件
- 自定义View实现米老鼠时钟
- android从零学(一)
- 照片
- Android基础
- jQuery $.each用法
- 18. 4Sum
- EventBus代替Intent将复杂对象传递给下一个即将启动的Activity