数据结构-字符串连接 (C++代码)可AC 摘要:解题思路:运用string函数的性质如 string string1="123" , string2="456"; string1+=string2; 则 string1="123456";注…… 题解列表 2018年08月08日 4 点赞 0 评论 1274 浏览 评分:6.5
数据结构-字符串连接-题解(C语言代码) 摘要:解题思路:这里用调用函数可以使程序更简洁注意事项:参考代码:#include#includeint main(){ int check (char x[1000], int b );//对被调用…… 题解列表 2020年12月05日 0 点赞 1 评论 863 浏览 评分:6.0
数据结构-字符串连接 很好的解法 摘要:#include #include int main() { char a[200],b[100],c[200],d[100],e[200],f[100]; memset(a,0,siz…… 题解列表 2019年07月11日 0 点赞 0 评论 687 浏览 评分:4.0
数据结构-字符串连接 (C语言代码) 摘要:解题思路:注意事项:字符串不超过100,则数组长度应该定为101(或者更大),因为要给'\0'留一个位置。参考代码:#include<cstdio>int main(){ char s…… 题解列表 2019年01月30日 0 点赞 1 评论 624 浏览 评分:0.0
1687: 数据结构-字符串连接 vector 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符向量q1,用于存储拼接后…… 题解列表 2024年12月05日 0 点赞 0 评论 114 浏览 评分: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 评论 133 浏览 评分:0.0
编写题解 1687: 数据结构-字符串连接 摘要:编写题解 1687: 数据结构-字符串连接 ``` #include using namespace std; int main() { string s1,s2; for(int …… 题解列表 2023年02月15日 0 点赞 0 评论 151 浏览 评分: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 评论 85 浏览 评分:0.0
数据结构-字符串连接(C语言) 摘要: #include #include int main(){ char a[500],b[500]; while(scanf("%s %s…… 题解列表 2022年07月16日 0 点赞 0 评论 392 浏览 评分:0.0
数据结构-字符串连接 题解 摘要:解题思路:直接输入后连接,最后输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string a,b;int main(){ for(…… 题解列表 2022年05月06日 0 点赞 0 评论 218 浏览 评分:0.0