大写 变 小写 指针 求查错
大写 变 小写 指针#include<stdio.h>
void main()
{char a[100],*p;
gets(a);
for(p=a;*p!='\0';p++);
if(*p>='A'&&*p<='Z')
*p=*p+32;
printf("%d\n",a);
}
结果
ABCD
1244956
Press any key to continue
为什么呢
2010-06-27 08:41
2010-06-27 10:05
2010-06-27 10:06