运用函数解决问题 摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us…… 题解列表 2021年11月18日 0 点赞 0 评论 533 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:使用 reverse 函数将字符串反序。#include<bits/stdc++.h> using namespace std; int main(){ string s,temp;…… 题解列表 2021年12月23日 0 点赞 0 评论 569 浏览 评分: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 评论 482 浏览 评分:0.0
使用reverse求解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s…… 题解列表 2022年01月22日 0 点赞 0 评论 629 浏览 评分:0.0
Hifipsysta-1126题-字符串正反连接(C++代码)善用字符串加法 ```cpp#include#include#includeusingnamespacestd;intmain(){stringstr1,str2="";getline(cin,str1);for(inti=str1.size()-1;i>=0;i--){str2+=str1[i];}cout 题解列表 2022年01月26日 0 点赞 0 评论 478 浏览 评分: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 评论 626 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str; cin>>str; cout…… 题解列表 2022年03月26日 0 点赞 0 评论 622 浏览 评分:0.0
纯新手,来看看呀QAQ 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,k; char a[100],b[100]; gets(a); for…… 题解列表 2022年04月17日 0 点赞 0 评论 468 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); printf("%s",str); int l…… 题解列表 2022年06月23日 0 点赞 0 评论 458 浏览 评分:0.0
题解 1126: C语言训练-字符串正反连接(C语言) #C语言:字符串正反连接##题目所给字符串正序和反序连接,形成新串并输出。##主要步骤-gets函数输入字符串,存入数组a中-将a的元素反序存入数组b中-strcat函数连接a,b数组输出即可##完整参考代码```c#include#includeintmain(void){chara[100];ch 题解列表 2022年08月26日 0 点赞 0 评论 597 浏览 评分:0.0