1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int main() { stri…… 题解列表 2022年10月11日 0 点赞 0 评论 465 浏览 评分:0.0
自定义函数之字符串连接 摘要: #include using namespace std; void fun(string s1, string s2) { cout s1 >> …… 题解列表 2022年10月11日 0 点赞 0 评论 452 浏览 评分:0.0
引入第三个一维字符数组 摘要:解题思路: 引入第三个一维字符数组,把两个字符数组的值依次赋值给第三个数组。参考代码:#include<stdio.h> #include<string.h> voi…… 题解列表 2022年10月13日 0 点赞 1 评论 425 浏览 评分:6.0
自定义函数之字符串连接 摘要:解题思路:定义三个数组,两个数组存放输入的数组,最后一个数组存放最终的数组注意事项:利用string函数库中strlen函数计算出个数组中的元素个数参考代码:# include <stdio.h># …… 题解列表 2022年11月01日 0 点赞 1 评论 400 浏览 评分:0.0
自定义函数之字符串连接 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);Stringstr1=sc.next();Stringst 题解列表 2022年11月06日 0 点赞 0 评论 454 浏览 评分:0.0
C语言 自定义函数之字符串连接& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define Long 20int main(){ char a[Long]; …… 题解列表 2022年11月16日 0 点赞 0 评论 494 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接 ```cpp#includeintmain(){chars[1000],t[1000];gets(s);intlen1=strlen(s);gets(t);intlen2=strlen(t);for(inti=0;i 题解列表 2022年12月06日 0 点赞 0 评论 1035 浏览 评分:7.3
虚晃一枪-《我还是用了这个函数》 摘要:解题思路:注意事项:参考代码:#pragma warning(disable : 4996) #include<stdio.h> #include<string.h> void my_strca…… 题解列表 2022年12月14日 0 点赞 0 评论 438 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char str1[10],str2[10];scanf("%s",str1);scanf("%s",str2);…… 题解列表 2022年12月21日 0 点赞 0 评论 644 浏览 评分:8.0
自定义函数之字符串连接(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<assert.h> char* my_strcat(char* dest, char* src) { …… 题解列表 2023年01月05日 0 点赞 0 评论 569 浏览 评分:0.0