C/C++:大写字母转化为小写字母

来源:互联网 发布:ubuntu下如何挂载u盘 编辑:程序博客网 时间:2024/05/17 19:57
#include <stdio.h>#include <stdlib.h>int main(void){    char x, y;    printf("请输入一个大写字母\n");    scanf("%c", &x);    y = x + 32;                           //因为大小写字母ASCII码差32个数字    printf("%c的小写形式是%c\n", x, y);    system("pause");    return 0;}
0 0
原创粉丝点击