[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要: ```c #include #include void st(char a[], char b[]) { strcat(a, b);//字符串组合函数,把字符串b,添加到字符…… 题解列表 2020年03月06日 0 点赞 0 评论 462 浏览 评分:8.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:# 自定义函数之字符串连接 **原题链接[1032:自定义函数之字符串连接](http://https://www.dotcpp.com/oj/problem1032.html "1032:自定…… 题解列表 2020年12月17日 0 点赞 0 评论 600 浏览 评分:8.0
自定义字符串连接(C语言-指针) 摘要:解题思路:一开始使用string.h的头文件,然后思考有没有不需要借用其他函数,自己进行可链接的函数,然后用指针想出下面的方法。仅仅是用指针的一种学习。参考代码:#include<stdio.h> …… 题解列表 2022年03月28日 0 点赞 1 评论 481 浏览 评分:8.0
编写题解 1032: [编程入门]自定义函数之字符串连接(函数) 摘要:1.gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,但换行符会被丢弃,然后在末尾添加'\0'字符。gets(c)将读取的字符串保存到c[]中。 2.puts()函数把字符串输出到…… 题解列表 2022年08月12日 0 点赞 0 评论 365 浏览 评分:8.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char str1[10],str2[10];scanf("%s",str1);scanf("%s",str2);…… 题解列表 2022年12月21日 0 点赞 0 评论 343 浏览 评分:8.0
[编程入门]自定义函数之字符串连接-题解(八行代码) 摘要: #include #include int main(){ char a[20],b[20]; scanf("%s%s",a,b); …… 题解列表 2020年02月13日 0 点赞 0 评论 713 浏览 评分:7.3
题目 1032: [编程入门]自定义函数之字符串连接 摘要:def fun(str_1, str_2): new_ste = str_1 + str_2 return new_stestr_1 = input()str_2 = input()rel…… 题解列表 2021年04月06日 0 点赞 0 评论 433 浏览 评分:7.3
自定义函数之字符串连接-题解(python) 摘要:参考代码:print(input()+input())#将两次输入的字符串相加并显示 …… 题解列表 2021年10月15日 0 点赞 0 评论 495 浏览 评分:7.3
自定义函数之字符串连接 摘要:解题思路:本题解题可用数组,两个数组连接将其内容分别赋予第三个数组 需要用到strlen求字符数组长度,可以先求长度,然后根据数组长度连接两个字符串. …… 题解列表 2021年11月20日 0 点赞 0 评论 1328 浏览 评分:7.3
[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char x[],char y[]){ strcat(x,y);}int m…… 题解列表 2022年01月27日 0 点赞 0 评论 470 浏览 评分:7.3