C语言:将大写字母转换为小写字母
#include <stdio.h> int main() { char ch; printf("Press a key and then press Enter:\n"); ch = getchar(); if (ch >= 'A' && ch <= 'Z') { ch = ch + 32; } printf("%c\n", ch); return 0; }
原文地址: https://www.cveoy.top/t/topic/o9C0 著作权归作者所有。请勿转载和采集!