[编程入门]自定义函数之字符串连接-题解(C语言代码)(简便) 摘要:解题思路:这应该是迭代法吧哈哈,迭代递归傻傻分不清注意事项:put遇'\0'结束参考代码:#include<stdio.h>#include<string.h>int main(){ …… 题解列表 2021年08月02日 0 点赞 0 评论 915 浏览 评分:0.0
题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>void Cat(char a1[],char b1[]){ gets(a1); g…… 题解列表 2021年07月03日 0 点赞 0 评论 645 浏览 评分:0.0
自定义函数之字符串连接(C语言) 摘要:解题思路:这个题主要是让自己定义个函数进行连接注意事项:自定义函数时形参需要定义,如char参考代码:#include<stdio.h>#include<string.h>void link(char…… 题解列表 2021年06月01日 0 点赞 0 评论 590 浏览 评分:0.0
超级怕数组QAQ 由于我是先学的python,再学的C,所以我就会觉得C的字符串数组比python难的高了一个等级,原本这是一个在python里面只需要直接加就可以的问题,但是在的这里却需要认真的考虑其中的原理,但是可能也挺不错的吧。考虑的问题#1.字符串的末尾加‘\0’#2.开数组的范围。 题解列表 2021年05月21日 0 点赞 0 评论 650 浏览 评分:0.0
瞅瞅撒,利用指针解决此题,我这绝对是代码量最少的。(C语言描述) 摘要:解题思路:注意事项:参考代码:#include #include #include void main() { char a[1024],*c; gets(a); in…… 题解列表 2021年04月08日 0 点赞 1 评论 837 浏览 评分:9.6
按照题目要求来解答 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> void connect(char* a, char* b) { cha…… 题解列表 2021年04月06日 0 点赞 0 评论 460 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void Mystrcat(char str1[],char str2[]){ int n,i,j; for(i=strlen(str…… 题解列表 2021年03月30日 0 点赞 0 评论 533 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:解题思路:利用函数连接字符串注意事项:在a[i]最后加上一个'\0';参考代码:#include <stdio.h>#include <stdlib.h>#include <strin…… 题解列表 2021年03月08日 0 点赞 0 评论 997 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int lianjie(char a[],char b[],char c[]){ int i …… 题解列表 2021年03月01日 0 点赞 0 评论 530 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) ```c#includevoidfun(chara[],charb[],charc[]){inti,j=0;for(i=0;a[i]!='\0';i++){c[j++]=a[i];}for(i=0;b[i]!='\0';i++){c[j++]=b[i];}c[j]='\0';}intmain(void 题解列表 2021年02月07日 0 点赞 0 评论 842 浏览 评分:0.0