字符逆序(怀氏C++)
摘要:#include<iostream>
using namespace std;
#include<algorithm>
int main()
{
string s;
get……
1093: 字符逆序
摘要:要注意,a数组是一个字符串数组,输入后最后一项是‘\0’,因此第8行的strlen(a)还要-1
```cpp
#include
#include
using namespace std;
……
SinzoL--题解 1093: 字符逆序
摘要:####我是新手,这里只是把让字符逆序的两种方式给罗列了一下
###第一种:用string变量
```cpp
#include
#include
#include
using namesp……
小南解题--字符逆序--92ms--1行秒杀
摘要:因为内容太少不让发,太简便了可能请让我摸鱼一下,凑凑字数print(input()[::-1])……
1093: 字符逆序
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ getline(cin,s); fo……
优质题解
1093: 字符逆序
摘要:解题思路:(1)利用反向迭代器reverse_iterator:rbegin() 和 rend(),比如:string str1("1234567890");
string str2(str1.rb……