题解|大写变小写|带注释
2026-04-16 20:11:45
发布于:浙江
11阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);//加速输入输出的,可以不用
char s;//定义s,字符类型char
cin>>s;//输入s
s=tolower(s);//别漏了s=
//tolower:char/string大写转小写函数
cout<<s;//输出s
return 0;//return 0;好习惯
}
这里空空如也








有帮助,赞一个