字符串正反连接(简单C++)
摘要:#include<iostream>
using namespace std;
#include<string.h>
int main()
{
char s1[50],s2[50];……
题解 1126: C语言训练-字符串正反连接 按题要求建新串
摘要:解题思路: 用两个数组存放字符串,再用新数组连接起来
注意事项:
参考代码:
#include
#include
int main()
{
……
1126-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm> using namespace std;int main()……
先左到右遍历,再右到左,最后输出
摘要:```c
#include
#include
int main(){
char s[110];
scanf("%s",s);
int len=strlen(s);
for(i……
1126: C语言训练-字符串正反连接
摘要:```cpp
#include
#include
using namespace std;
int main()
{
char ch1[50],ch2[50];
gets……
题解 1126: C语言训练-字符串正反连接(C语言)
摘要:# C语言:字符串正反连接
## 题目
所给字符串正序和反序连接,形成新串并输出。
## 主要步骤
- gets函数输入字符串,存入数组a中
- 将a的元素反序存入数组b中
……
1126: C语言训练-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
char str[50];
gets(str);
printf("%s",str);
int l……
纯新手,来看看呀QAQ
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,k; char a[100],b[100]; gets(a); for……
编写题解 1126: C语言训练-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str; cin>>str; cout……