题解 1126: C语言训练-字符串正反连接

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

筛选

掌握反向迭代就行

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

c++字符串的简单解法

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

1126-字符串正反连接

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

使用reverse求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s……