数据结构-字符串连接 (C++代码)可AC 摘要:解题思路:运用string函数的性质如 string string1="123" , string2="456"; string1+=string2; 则 string1="123456";注…… 题解列表 2018年08月08日 4 点赞 0 评论 2669 浏览 评分:6.5
数据结构-字符串连接-题解(C语言代码) 摘要:解题思路:这里用调用函数可以使程序更简洁注意事项:参考代码:#include#includeint main(){ int check (char x[1000], int b );//对被调用…… 题解列表 2020年12月05日 0 点赞 1 评论 1554 浏览 评分:6.0
数据结构-字符串连接 很好的解法 #include#includeintmain(){chara[200],b[100],c[200],d[100],e[200],f[100];memset(a,0,sizeof(a));memset(a,0,sizeof(b));memset(a, 题解列表 2019年07月11日 0 点赞 0 评论 1288 浏览 评分:4.0
数据结构-字符串连接 (C语言代码) 摘要:解题思路:注意事项:字符串不超过100,则数组长度应该定为101(或者更大),因为要给'\0'留一个位置。参考代码:#include<cstdio>int main(){ char s…… 题解列表 2019年01月30日 0 点赞 1 评论 1082 浏览 评分:0.0
1687: 数据结构-字符串连接 vector 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符向量q1,用于存储拼接后…… 题解列表 2024年12月05日 0 点赞 0 评论 453 浏览 评分:0.0
编写题解 1687: 数据结构-字符串连接 摘要:解题思路:注意事项:参考代码:for x in range(3): a = input().split() if len(a[0]+a[1])>100: print("Res…… 题解列表 2023年05月19日 0 点赞 0 评论 610 浏览 评分:0.0
编写题解 1687: 数据结构-字符串连接 编写题解1687:数据结构-字符串连接```#includeusingnamespacestd;intmain(){strings1,s2;for(inti=0;i>s1>>s2;if(s1.length()+s2.length()>100){cout 题解列表 2023年02月15日 0 点赞 0 评论 658 浏览 评分:0.0
数据结构-字符串连接(C语言) 摘要:#include<stdio.h> #include<string.h> int main() { char str1[100],arr1[100]; char str2[100], a…… 题解列表 2023年01月06日 0 点赞 0 评论 592 浏览 评分:0.0
数据结构-字符串连接(C语言) 摘要: #include #include int main(){ char a[500],b[500]; while(scanf("%s %s…… 题解列表 2022年07月16日 0 点赞 0 评论 882 浏览 评分:0.0
数据结构-字符串连接 题解 摘要:解题思路:直接输入后连接,最后输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string a,b;int main(){ for(…… 题解列表 2022年05月06日 0 点赞 0 评论 635 浏览 评分:0.0