题解 1204: 大小写转换

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

大小写转换-题解(C++代码)

```cpp#include#include#includeusingnamespacestd;intmain(){chara[80];while(gets(a)){if(strcmp(a,"Endoffile")){intlen=strlen(a);for(inti=0;i='a'&&a[i]

大小写转换-题解(C/C++代码)(简单版)

####解题思路:该题主要用到了toupper函数transform(s.begin(),s.end(),s.begin(),::toupper);//小写变成大写transform(s.begin(),s.end(),s.begin(),::tolower);//大写变成小写####参考代码:```
优质题解

大小写转换-题解(C++代码)string+transform方法

C++stl函数库提供了很多的方法函数这个题目是讲小写字母转换为大写字母直接用string+transform就可以直接完成```cppstrings;transform(s.begin(),s.end(),s.begin(),::toupper);//小写变成大写transform(s.begin(

大小写转换 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<cmath> #include<algorithm> using nam……

大小写转换 (C++代码)完全C++

摘要:解题思路:        其实C++在之初更加推荐对自己的新特新使用迭代器的便利方式,所谓迭代器就是属于C++自身新模版的一种容器,旧时的容器使用iterator,新的容易定义方法用auto,据说C2……

大小写转换 (C++代码)

摘要:解题思路:注意事项:参考代码:#include <iostream> #include<string> using namespace std; int main() {     str……