字符串正反连接(C语言) 摘要:解题思路:先创建一个数组,用来储存输入字符串,再利用循环把字符串反着输出,把两个字符串连接到一个字符串中。注意事项:索引=字符串长度-1参考代码:#include<stdio.h>#include<s…… 题解列表 2021年09月12日 0 点赞 0 评论 221 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意字符串结束符注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() {…… 题解列表 2021年09月19日 0 点赞 0 评论 138 浏览 评分:0.0
algorithm库是真好用 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(…… 题解列表 2021年10月31日 0 点赞 0 评论 283 浏览 评分:0.0
运用函数解决问题 摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us…… 题解列表 2021年11月18日 0 点赞 0 评论 178 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:使用 reverse 函数将字符串反序。#include<bits/stdc++.h> using namespace std; int main(){ string s,temp;…… 题解列表 2021年12月23日 0 点赞 0 评论 250 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char a[50],b[50];int i,j;void fun1(char a[]){ j…… 题解列表 2022年01月19日 0 点赞 0 评论 102 浏览 评分:0.0
使用reverse求解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s…… 题解列表 2022年01月22日 0 点赞 0 评论 228 浏览 评分:0.0
Hifipsysta-1126题-字符串正反连接(C++代码)善用字符串加法 摘要: ```cpp #include #include #include using namespace std; int main() { string str1,str2=…… 题解列表 2022年01月26日 0 点赞 0 评论 180 浏览 评分:0.0
写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,i; char str[51]; gets(str); m=st…… 题解列表 2022年03月09日 0 点赞 0 评论 243 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str; cin>>str; cout…… 题解列表 2022年03月26日 0 点赞 0 评论 244 浏览 评分:0.0