自定义函数之字符串连接 摘要:解题思路:定义三个数组,两个数组存放输入的数组,最后一个数组存放最终的数组注意事项:利用string函数库中strlen函数计算出个数组中的元素个数参考代码:# include <stdio.h># …… 题解列表 2022年11月01日 0 点赞 1 评论 125 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2022年11月06日 0 点赞 0 评论 163 浏览 评分:0.0
C语言 自定义函数之字符串连接& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define Long 20int main(){ char a[Long]; …… 题解列表 2022年11月16日 0 点赞 0 评论 130 浏览 评分:0.0
虚晃一枪-《我还是用了这个函数》 摘要:解题思路:注意事项:参考代码:#pragma warning(disable : 4996) #include<stdio.h> #include<string.h> void my_strca…… 题解列表 2022年12月14日 0 点赞 0 评论 145 浏览 评分:0.0
自定义函数之字符串连接(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<assert.h> char* my_strcat(char* dest, char* src) { …… 题解列表 2023年01月05日 0 点赞 0 评论 136 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:这题是1032,除了最简单的strcat()使用外,我提供了一个与1031类似思路的解题方法,即用指针作为函数的返回值。注意事项:这个方法比较麻烦,本人是拿来对第1031题学到的知识进行巩固…… 题解列表 2023年01月10日 0 点赞 0 评论 163 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:#include<stdio.h>#include<string.h>int main(){ char a[10]={'0'},b[10]={'0'};…… 题解列表 2023年03月01日 0 点赞 0 评论 96 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接 摘要:解题思路: 创建并输入两个字符串,再创建一个字符数组。先将一个字符串内的元素依次放入数组中,再将另一个字符串的元素也依次放入即可。注意事项: 字符数组的末尾要添上'\0',…… 题解列表 2023年03月05日 0 点赞 0 评论 135 浏览 评分:0.0
超级简单的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0};char b[100]={0}; gets(…… 题解列表 2023年03月15日 0 点赞 0 评论 135 浏览 评分:0.0
使用strcat字符串连接 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char s[100]; …… 题解列表 2023年03月18日 0 点赞 0 评论 117 浏览 评分:0.0