[编程入门]自定义函数之字符串连接-Java 摘要:解题思路:纯属自我记录................注意事项:参考代码:Scanner in = new Scanner(System.in); String a = in.nextLine();…… 题解列表 2021年05月17日 0 点赞 0 评论 1146 浏览 评分:6.0
[编程入门]自定义函数之字符串连接-调用函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void fun(char a[],char b[],char c[],int lena,i…… 题解列表 2021年09月23日 0 点赞 0 评论 661 浏览 评分:6.0
编写题解 1032: [编程入门]自定义函数之字符串连接(c++) 摘要:解题思路:定义两个字符串,再分别输出注意事项:不要换行!不要换行!不要换行!参考代码:#include<iostream>using namespace std;int main(){ stri…… 题解列表 2022年05月23日 0 点赞 0 评论 485 浏览 评分:6.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:连接两个字符串,需要灵活运用C语言中C函数库中提供的处理字符串的函数,利用gets(str)来获取字符串,然后用strcat连接两个字符串。参考代码:#include<stdio.h>voi…… 题解列表 2022年06月11日 0 点赞 0 评论 538 浏览 评分:6.0
引入第三个一维字符数组 摘要:解题思路: 引入第三个一维字符数组,把两个字符数组的值依次赋值给第三个数组。参考代码:#include<stdio.h> #include<string.h> voi…… 题解列表 2022年10月13日 0 点赞 1 评论 356 浏览 评分:6.0
字符串连接 摘要:```cpp #include using namespace std; int main() { string s,t; getline(cin,s); getline(…… 题解列表 2023年09月18日 0 点赞 0 评论 457 浏览 评分:6.0
优质题解 C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路和注意事项:思路:定义两个数组,分别用gets()函数输入,再用strcat()进行连接,最后用puts()函数进行输出即可。函数用法:gets()和puts()函数请见上一篇文章。 …… 题解列表 2018年04月27日 14 点赞 61 评论 17923 浏览 评分:6.3
[编程入门]自定义函数之字符串连接-题解(八行代码) 摘要: #include #include int main(){ char a[20],b[20]; scanf("%s%s",a,b); …… 题解列表 2020年02月13日 0 点赞 0 评论 1334 浏览 评分: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 评论 756 浏览 评分:7.3
自定义函数之字符串连接-题解(python) 摘要:参考代码:print(input()+input())#将两次输入的字符串相加并显示 …… 题解列表 2021年10月15日 0 点赞 0 评论 982 浏览 评分:7.3