自定义函数之字符串连接(單個100字符內) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void fun_0(char *a,char *b,char *c,int len_a,int len_b);//函數聲明 in…… 题解列表 2023年03月26日 0 点赞 0 评论 637 浏览 评分:9.9
字符串连接C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char a[100],b[100],c[200]; gets(a); g…… 题解列表 2023年03月21日 0 点赞 0 评论 598 浏览 评分:0.0
超级简单的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0};char b[100]={0}; gets(…… 题解列表 2023年03月15日 0 点赞 0 评论 499 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接 摘要:解题思路: 创建并输入两个字符串,再创建一个字符数组。先将一个字符串内的元素依次放入数组中,再将另一个字符串的元素也依次放入即可。注意事项: 字符数组的末尾要添上'\0',…… 题解列表 2023年03月05日 0 点赞 0 评论 818 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:#include<stdio.h>#include<string.h>int main(){ char a[10]={'0'},b[10]={'0'};…… 题解列表 2023年03月01日 0 点赞 0 评论 510 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 解题思路:这题是1032,除了最简单的strcat()使用外,我提供了一个与1031类似思路的解题方法,即用指针作为函数的返回值。注意事项:这个方法比较麻烦,本人是拿来对第1031题学到的知识进行巩固参考代码:#include#includechar*splice 题解列表 2023年01月10日 0 点赞 0 评论 527 浏览 评分:0.0
c语言字符串拼接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str1[101]={0}; char str2[50…… 题解列表 2023年01月07日 0 点赞 0 评论 778 浏览 评分:9.9
自定义函数之字符串连接(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<assert.h> char* my_strcat(char* dest, char* src) { …… 题解列表 2023年01月05日 0 点赞 0 评论 615 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char str1[10],str2[10];scanf("%s",str1);scanf("%s",str2);…… 题解列表 2022年12月21日 0 点赞 0 评论 683 浏览 评分:8.0
虚晃一枪-《我还是用了这个函数》 摘要:解题思路:注意事项:参考代码:#pragma warning(disable : 4996) #include<stdio.h> #include<string.h> void my_strca…… 题解列表 2022年12月14日 0 点赞 0 评论 475 浏览 评分:0.0