这条题目怎样做?(0分)

寻找

Unregistered / Unconfirmed
GUEST, unregistred user!
将键盘输入的字符中的大写字母转换成小写,其它不变
# include<stdio.h>
# define bwer(x)('A'<x&amp;&amp;___)(x=x-'A'+'a'):X
void main()
{
int c;
while ((c=getchar()!=eof)
putchar(_____);
}
 
将键盘输入的字符中的大写字母转换成小写,其它不变
# include<stdio.h>
# define bwer(x)('A'<x&amp;&amp;___)(x=x-'A'+'a'):X
void main()
{
int c;
while ((c=getchar()!=eof)
putchar( bwer(c) );
 
将键盘输入的字符中的大写字母转换成小写,其它不变
# include<stdio.h>
# define bwer(x)('A'=<x&amp;&amp;x<='Z')(x=x-'A'+'a'):x
/* 应该有一个等号吧?*/
void main()
{
int c;
while ((c=getchar()!=eof)
putchar( bwer(c) );
 
不是吧,有个tolower()函数啊
 
将键盘输入的字符中的大写字母转换成小写,其它不变
# include<stdio.h>
# define bwer(x)('A'=<x&amp;&amp;x<='Z')?(x-'A'+'a'):x
/* 应该有一个问号吧?*/
void main()
{
int c;
while ((c=getchar()!=eof)
putchar( bwer(c) );
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
783
import
I
I
回复
0
查看
895
import
I
I
回复
0
查看
684
import
I
顶部