在函数内直接相加实现拼接 摘要:解题思路:先定义两个字符串类型的变量依次输入,然后调用函数,在函数内通过相加实现字符串的拼接注意事项:参考代码:#include<bits/stdc++.h>using namespace…… 题解列表 2025年04月09日 1 点赞 0 评论 23 浏览 评分:10.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要: #include #include #include #include #include using namespace std;…… 题解列表 2025年04月03日 0 点赞 0 评论 75 浏览 评分:0.0
常规解法---------------------------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <cstring>using namespace std;const int N = 101…… 题解列表 2025年03月17日 0 点赞 0 评论 174 浏览 评分:0.0
数组实现字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b…… 题解列表 2025年01月24日 5 点赞 0 评论 452 浏览 评分:10.0
利用数组遍历来实现连接 摘要:#include<stdio.h>int main(){ char a[1000],b[19999]; int i,j=0; &…… 题解列表 2025年01月04日 1 点赞 0 评论 199 浏览 评分:0.0
自定义函数之字符串连接 摘要:#include<stdio.h> int main(void) { char a[100]; char b[100]; char temp[100]; i…… 题解列表 2024年12月28日 0 点赞 0 评论 293 浏览 评分:0.0
简单易想到 摘要:解题思路:进行字符串拼接注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char*a,char*b){ char c[100]; int i…… 题解列表 2024年12月17日 1 点赞 0 评论 324 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 两行搞定! 摘要:解题思路:注意事项: 哈哈哈哈哈哈,没骗你吧参考代码:#include"bits/stdc++.h" using namespace std;int main(){st…… 题解列表 2024年12月06日 3 点赞 2 评论 360 浏览 评分:10.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[150]; char b[51]; gets(a); gets(b); …… 题解列表 2024年11月20日 0 点赞 0 评论 335 浏览 评分:0.0
没用strcat,用的gets和puts, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void lianj(char f1[],char f2[]){ int k,i,p; …… 题解列表 2024年11月15日 0 点赞 0 评论 195 浏览 评分:9.9