Chinaunix首页 | 论坛 | 博客
  • 博客访问: 209669
  • 博文数量: 136
  • 博客积分: 2919
  • 博客等级: 少校
  • 技术积分: 1299
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-11 09:08
文章分类

全部博文(136)

文章存档

2013年(1)

2011年(135)

我的朋友

分类: C/C++

2011-03-27 11:22:15

  1. /* k&r(7.1): Standard Input and Output
  2.    created on Mar 27, 2011
  3.    */
  4. #include "stdio.h"
  5. #include "ctype.h"

  6. main() /* lower: convert input to lower case */
  7. {
  8.     int c;

  9.     while ((c = getchar()) != EOF)
  10.      putchar(tolower(c));
  11.     return 0;
  12. }
阅读(328) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~