[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[1000]; gets(a); char b[1000]…… 题解列表 2020年08月09日 0 点赞 0 评论 767 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:解题思路:!!!注意事项:!!!参考代码:!#include<stdio.h>#include<string.h>int ljc(char a[],char b[]){ int i=0,l1,l2; …… 题解列表 2020年07月25日 0 点赞 1 评论 776 浏览 评分:9.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str1[100]={0},str2[50]={0}; get…… 题解列表 2020年07月21日 0 点赞 0 评论 748 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码)S ###题目要求写一函数,将两个字符串连接###解题思路将两个字符串用gets存入两个数组,用strlen函数得到字符串长度,再将其中一个字符串存入另一个字符串所在数组后面完成连接###参考代码```c#include#includeintmain(){voidcon(char*a, 题解列表 2020年07月02日 0 点赞 0 评论 913 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) #include#includeintmain(){charstr1[101];charstr2[100];gets(str1);gets(str2);strcat(str1,str2);puts(str1);return0;} 题解列表 2020年05月27日 0 点赞 0 评论 821 浏览 评分:2.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) ```c#include#includevoidlianjie(chara[],charb[]);intmain(){chara[100],b[100];gets(a);gets(b);lianjie(a,b);}voidlianjie(chara[], 题解列表 2020年05月16日 0 点赞 2 评论 1006 浏览 评分:9.6
[编程入门]自定义函数之字符串连接-题解(C语言代码) #include#includeintlink(chara[],charb[],charc[]){inti,j,l,m;l=strlen(a);m=strlen(b);for(i=0;i 题解列表 2020年05月11日 0 点赞 0 评论 898 浏览 评分:0.0
通过数组连接 自定义函数之字符串连接-题解(C语言代码) #使用数组连接字符串**如果需要,可以连string.h函数库都不调用(转为单个字符输入或用循环检查)##请注意最后的空字符插入```c#include#includeintmain(void){charch1[100],ch2[100],name[200];inti, 题解列表 2020年04月25日 0 点赞 0 评论 1672 浏览 评分:8.7
[编程入门]自定义函数之字符串连接-题解(C语言代码)(一维数组)(函数调用) ```c#include#includevoidzi(chara[100],charb[100]){strcat(a,b);//把字符串b追加到字符串a中.printf("%s\n",a);}intmain(){chara[100];charb[100];scanf("%s%s", 题解列表 2020年04月21日 0 点赞 0 评论 1034 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) #include#includeintfunc(chara[],charb[]){strcat(a,b);//字符串连接函数puts(a);}intmain(){chara[100],b[100];gets(a);gets(b);func(a,b);return0;} 题解列表 2020年03月30日 0 点赞 0 评论 815 浏览 评分:0.0