敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[200]; gets (a);…… 题解列表 2022年11月02日 0 点赞 0 评论 467 浏览 评分:0.0
正一遍倒着一遍呗 摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a; cin>>a; c…… 题解列表 2022年10月26日 0 点赞 0 评论 743 浏览 评分:9.9
字符串正反连接(简单C++) 摘要:#include<iostream> using namespace std; #include<string.h> int main() { char s1[50],s2[50];…… 题解列表 2022年10月26日 0 点赞 0 评论 745 浏览 评分:9.3
题解 1126: C语言训练-字符串正反连接 按题要求建新串 解题思路:用两个数组存放字符串,再用新数组连接起来注意事项:参考代码:#include#includeintmain(){chara[50],b[50],c[100];inti=0,j,len_a,x;gets(a);//puts(a);//测试用len_a=strlen(a);x=len_a;for 题解列表 2022年10月24日 0 点赞 0 评论 882 浏览 评分:9.9
1126-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm> using namespace std;int main()…… 题解列表 2022年10月07日 0 点赞 0 评论 508 浏览 评分:0.0
先左到右遍历,再右到左,最后输出 摘要:```c #include #include int main(){ char s[110]; scanf("%s",s); int len=strlen(s); for(i…… 题解列表 2022年10月03日 0 点赞 0 评论 532 浏览 评分:0.0
1126: C语言训练-字符串正反连接 ```cpp#include#includeusingnamespacestd;intmain(){charch1[50],ch2[50];gets(ch1);for(inti=strlen(ch1)-1;i>=0;i--)ch2[i]=ch1[strlen(ch1)-1-i];strcat(ch1, 题解列表 2022年09月22日 0 点赞 0 评论 984 浏览 评分:9.9
题解 1126: C语言训练-字符串正反连接(C语言) #C语言:字符串正反连接##题目所给字符串正序和反序连接,形成新串并输出。##主要步骤-gets函数输入字符串,存入数组a中-将a的元素反序存入数组b中-strcat函数连接a,b数组输出即可##完整参考代码```c#include#includeintmain(void){chara[100];ch 题解列表 2022年08月26日 0 点赞 0 评论 594 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); printf("%s",str); int l…… 题解列表 2022年06月23日 0 点赞 0 评论 457 浏览 评分: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 评论 461 浏览 评分:0.0