uc_lc.c
来自「c和指针 学习c语言必须阅读的书籍之一 提高对C语言的掌握理解能力」· C语言 代码 · 共 18 行
C
18 行
/*
** Copy the standard input to the standard output, converting
** all uppercase characters to lowercase. Note: This depends
** on the fact that tolower returns its argument unchanged if
** the argument is not an uppercase letter.
*/
#include <stdio.h>
#include <ctype.h>
int
main( void )
{
int ch;
while( (ch = getchar()) != EOF )
putchar( tolower( ch ) );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?