c++ primer plus 习题6.1 (cctype,cin.get)
来源:互联网 发布:淘宝账号转让平台 编辑:程序博客网 时间:2024/05/16 05:19
#include<iostream>#include<cctype>using namespace std;int main() {char ch,change;cout<<"please input:";cin.get(ch);while(ch != '@'){if(!isdigit(ch)){if(isupper(ch)){change=ch+32;cout<<change;}if(islower(ch)){change=ch-32;cout<<change;}if((!isupper(ch))&&(!islower(ch)))cout<<ch;}cin.get(ch);}return 0;}
0 0
- c++ primer plus 习题6.1 (cctype,cin.get)
- C++Primer学习笔记(一):cin与cin.get()
- c primer Plus第一章习题
- C Primer plus 习题5.3
- c++ primer plus 习题5.8(5.9)(while(cin>>word),strcmp())
- C primer plus第1章(概览)习题
- C primer plus第9章(函数)习题
- C primer plus第10章(指针)习题
- C++primer plus(第四版)第五章习题参考
- C primer plus课后习题答案(部分)
- c primer plus第14章习题
- c primer plus 第二章习题摘录
- 《C Primer Plus》第一章 概览 课后习题
- C Primer Plus 第五章习题
- C primer plus第七章习题
- c primer plus 11章习题答案
- c primer plus第十一章课后习题
- C++primer plus 第五章习题!
- [LeetCode]Largest Number
- 15多线程编程
- java定义数组的三种类型
- 网络编程中何时转换传输数据的字节序
- 新年目标
- c++ primer plus 习题6.1 (cctype,cin.get)
- 在Hive 中如何使用复合数据结构 maps,array,structs
- 二十七、继承(四) 多重继承、虚继承与虚基类、虚基类及其派生类构造函数
- Codeforces Round #285 (Div. 2)C. Misha and Forest
- SCPS_RI_1_1_144安装的问题
- 如何让自己网站播放优酷视频怎么去掉优酷广告?
- 断奶、
- MySQL二进制日志使用遇到的编码问题
- 最长回文子串