首页 > ACM题库 > HDU-杭电 > HDU 1161 Eddy’s mistakes[解题报告] C++
2013
12-03

HDU 1161 Eddy’s mistakes[解题报告] C++

Eddy’s mistakes

问题描述 :

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.

输入:

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.

输出:

For each test case, you should output an only line, after namely the result of transforms the lowercase letter.

样例输入:

weLcOmE tO HDOj Acm 2005!

样例输出:

welcome to hdoj acm 2005!

2011-12-16 10:28:49

地址:http://acm.hdu.edu.cn/showproblem.php?pid=1161

题意:把大写变成小写后输出。。。

代码:

# include <stdio.h>


int main ()
{
    int ch ; 
    while ((ch = getchar ()) != EOF)
    {
        if (ch >= 'A' && ch <= 'Z')
            putchar (ch -'A' + 'a') ;
        else putchar (ch) ;
    }
    return 0 ;
}


  1. 站长好。我是一个准备创业的互联网小白,我们打算做一个有关国*际*游*学的平台。手上也有了一些境外资源。现阶段的团队现在没有cto.原意出让一些管理股寻找一个靠谱的技术专家做合伙人, 不知道是不是能得到您的帮助。发个帖子或者其他方式。期待您的回应。可以加我微信tianxielemon聊聊。

  2. simple, however efficient. A lot of instances it is difficult to get that a??perfect balancea?? among usability and appearance. I must say that youa??ve done a exceptional task with this. Also, the blog masses quite fast for me on Web explore.