1126: C语言训练-字符串正反连接
摘要:使用 reverse 函数将字符串反序。#include<bits/stdc++.h>
using namespace std;
int main(){
string s,temp;……
1126: C语言训练-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char a[50],b[50];int i,j;void fun1(char a[]){ j……
使用reverse求解
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s……
Hifipsysta-1126题-字符串正反连接(C++代码)善用字符串加法
摘要:
```cpp
#include
#include
#include
using namespace std;
int main()
{
string str1,str2=……
写题解 1126: C语言训练-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,i; char str[51]; gets(str); m=st……
编写题解 1126: C语言训练-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str; cin>>str; cout……
纯新手,来看看呀QAQ
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,k; char a[100],b[100]; gets(a); for……
1126: C语言训练-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
char str[50];
gets(str);
printf("%s",str);
int l……
题解 1126: C语言训练-字符串正反连接(C语言)
摘要:# C语言:字符串正反连接
## 题目
所给字符串正序和反序连接,形成新串并输出。
## 主要步骤
- gets函数输入字符串,存入数组a中
- 将a的元素反序存入数组b中
……