Eddy's mistakes
Problem Description
Eddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Eddy's English teacher be extremely discontentment.Now please you to write a procedure to be able in the Bob article English letter to turn completely the small letter.
Input
The input contains several test cases.each line consists a test case,Expressed Eddy writes in an article , by letter, blank space,numeral as well as each kind of punctuation
composition, the writing length does not surpass 1000 characters.
Output
For each test case, you should output an only line, after namely the result of transforms the lowercase letter.
Sample Input
weLcOmE tO HDOj Acm 2005!
Sample Output
welcome to hdoj acm 2005!
#include <stdio.h>
#include <ctype.h> int main(){
char c; while((scanf("%c",&c))!=EOF){ while(c!='\n'){
if(isupper(c)!=)
c=tolower(c); printf("%c",c); c=getchar();
} printf("\n");
} return ;
}
最新文章
- 【原】nodejs全局安装和本地安装的区别
- wpf xaml文件编辑出现中文乱码
- DataSet读取XML
- Shooting Algorithm
- Web应用程序系统的多用户权限控制设计及实现-用户模块【7】
- CSS笔记(一)CSS规则
- php pthreads 多线程扩展的使用:一个较为稳定例子。
- Informix如何释放异常的锁资源
- js浮点数精度问题
- node.JS中配置http-server
- Java 集合框架之set用法
- jquery-1.11.1.js
- windows linux—unix 跨平台通信集成控制系统----文件搜索
- 使用 ZipArchive 生成Zip文件备注
- 步步为营-75-Cookie简介
- Docker 入门 第三部分: 服务
- 【转】使用SevenZipSharp压缩、解压文件
- JavaScript计算指定日期与当前日期的相差天数
- 关于使用_bstr_t的一个坑
- Java中的代码块:局部代码块、构造代码块和静态代码块
热门文章
- 台哥原创:java 连连看源码
- c++ rand &;&; srand 函数
- laravel 模型 $table $guarded $hidden
- Math teacher&#39;s homework
- MyEclipse无法自动编译项目故障一例
- Android 性能优化(21)*性能工具之「GPU呈现模式分析」Profiling GPU Rendering Walkthrough:分析View显示是否超标
- UC浏览器中,设置了position: fixed 的元素会遮挡z-index值更高的同辈元素
- 记一次java应用cpu利用率过高调试经历
- sql删除表中重复记录只保留一条记录
- 在idea中为类和方法自动生成注释