#include <stdio.h>
#include <ctype.h> //头文件
int main()
{
int i = 0;
char c;
char str[] = "RUNOOB";
while (str[i])
{
putchar(tolower(str[i]));//变为小写字母 toupper(str[i])变大写字母
i++;
}
return(0);
}
大小写字母转换 ctype.h tolower toupper
猜你喜欢
转载自blog.csdn.net/zhao2chen3/article/details/87942065
今日推荐
周排行