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

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




# 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.