优质题解 [编程入门]自定义函数之字符串连接 摘要:### 解题思路: >首先,我想说既然题目中给出自己写一个函数将两个字符串连接,那么出题人的意图应该就是要考生自己编写一个函数实现与`strcat`函数同样的效果,而不是直接引用`strcat`…… 题解列表 2023年11月18日 0 点赞 9 评论 3118 浏览 评分:8.3
自定义函数之字符串连接 摘要:解题思路:这段代码实现的是两个字符串的连接功能。首先,让我们分析mystrcat函数:while(*ch1)循环会一直执行,直到ch1指向的字符是空字符(也就是字符串的结尾)。这个循环的作用是找到ch…… 题解列表 2023年11月08日 0 点赞 1 评论 571 浏览 评分:7.3
我这对吗?我感觉有哪不对,但又说不上来,机器给我判对了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void max(char a[],char b[]){ printf("%s",a); printf("%s",b); return;…… 题解列表 2023年11月01日 0 点赞 0 评论 410 浏览 评分:0.0
这样写怎么样 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ char a[100]; int i,j,q; char r,s; for(i=0;;i++) { sc…… 题解列表 2023年10月30日 0 点赞 0 评论 466 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:用字符串连接函数即可注意事项:参考代码:#include<stdio.h>int main(){ char a[100],b[100]; gets(a); gets(b);…… 题解列表 2023年10月09日 0 点赞 0 评论 516 浏览 评分:0.0
字符串连接 摘要:```cpp #include using namespace std; int main() { string s,t; getline(cin,s); getline(…… 题解列表 2023年09月18日 0 点赞 0 评论 506 浏览 评分:6.0
自定义函数之字符串连接java 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2023年09月13日 0 点赞 0 评论 579 浏览 评分:0.0
自定义函数之字符串连接(指针) 摘要:解题思路: 解释就都在代码中了 参考代码: 未用指针版,容易理解些: ```c #include void m(char *a,char *b) { int i=0,k…… 题解列表 2023年08月16日 0 点赞 0 评论 586 浏览 评分:0.0
1032题 : 自定义函数之字符串连接 摘要:# 自己写的代码 ```c #include #include int main() { char a[20]; char b[20]; gets(a); gets(b)…… 题解列表 2023年06月29日 0 点赞 0 评论 483 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:可以直接使用strcat函数来实现连接功能注意事项:注意gets函数要使用两次参考代码:#include<stdio.h>#include<string.h>int main(){ c…… 题解列表 2023年06月10日 0 点赞 0 评论 528 浏览 评分:9.9