阅读背景:

大小写字母转换 ctype.h tolower toupper

来源:互联网 

#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);
}

#include <stdio.h>
#include <ctype.h>  /



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: