重学C++ 大小写转换
来源:互联网 发布:淘宝烈士墙是什么意思 编辑:程序博客网 时间:2024/06/05 16:41
//源代码来自 《C++ 程序员教程》
#include<iostream>using std::cout;using std::endl;#include<cctype>using std::islower;using std::toupper;void convertTouppercase(char*);int main(){char phrase[]="characters and $32.98";cout<<"The phrase before conversion is:"<<phrase<<endl;convertTouppercase(phrase);cout<<"The phrase after conversion is:"<<phrase<<endl;return 0;}void convertTouppercase(char* phrase){while(*phrase!='\0'){if(islower(*phrase)){*phrase=toupper(*phrase);}phrase++;}}
- 重学C++ 大小写转换
- c 大小写转换
- C语言转换大小写
- C语言大小写转换
- C语言转换大小写
- C语言大小写转换
- 重学C语言
- 重学C语言
- c语言的大小写转换
- C C++ 字符串大小写转换
- C++: string的大小写转换
- 【c语言】大小写字母转换
- C++ 字符串大小写转换
- C++: string的大小写转换
- linux C/C++大小写转换
- C++: string的大小写转换
- C++: string的大小写转换
- C语言实现大小写转换
- MFC UpdateData(FALSE)和UpdateData(TRUE)的作用
- 多种方法查看Oracle SQL执行计划
- tableView中动态添加,删除行
- ZOJ 3700 Ever Dream
- poj 2083 分形
- 重学C++ 大小写转换
- 整数划分问题
- ThreadLocal
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- HUD3790最短路径问题(SPFA实现)
- 通过分析SQL语句的执行计划优化SQL
- 软件自动化测试框架的发展
- Why do people use enums in C++ as constants while they can use const?
- su: warning: cannot change directory to /home/oracle: Permission denied