当前位置:首页 > 问答 > 正文

    编写程序,输入10个大小写字母混杂的字符串,将其中的大写字母全部转换为小写字母,然后输出?

    匿名用户 2022-12-26 02:12:51提问

#include <stdio.h> #include <ctype.h>char convert_to_lower(char c) { // 如果 c 是大写字母,则将其转换为小写字母 if (isupper(c)) { c = c + 32; } return c; }int mai