自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void str_cat(char a[],char b[]){ strcat(a,b); …… 题解列表 2023年11月30日 0 点赞 0 评论 100 浏览 评分:0.0
字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; char b[100]; int…… 题解列表 2023年11月25日 0 点赞 0 评论 722 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:用字符串函数<string.h>注意事项:需注意两个函数的位置,若主函数在前则须在主函数内声明连接的函数参考代码:#include <stdio.h>#include <string.h>v…… 题解列表 2023年11月19日 0 点赞 0 评论 126 浏览 评分:0.0
优质题解 [编程入门]自定义函数之字符串连接 摘要:### 解题思路: >首先,我想说既然题目中给出自己写一个函数将两个字符串连接,那么出题人的意图应该就是要考生自己编写一个函数实现与`strcat`函数同样的效果,而不是直接引用`strcat`…… 题解列表 2023年11月18日 0 点赞 8 评论 2294 浏览 评分:8.3
自定义函数之字符串连接 摘要:解题思路:这段代码实现的是两个字符串的连接功能。首先,让我们分析mystrcat函数:while(*ch1)循环会一直执行,直到ch1指向的字符是空字符(也就是字符串的结尾)。这个循环的作用是找到ch…… 题解列表 2023年11月08日 0 点赞 1 评论 221 浏览 评分:7.3
我这对吗?我感觉有哪不对,但又说不上来,机器给我判对了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void max(char a[],char b[]){ printf("%s",a); printf("%s",b); return;…… 题解列表 2023年11月01日 0 点赞 0 评论 75 浏览 评分: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 评论 102 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:用字符串连接函数即可注意事项:参考代码:#include<stdio.h>int main(){ char a[100],b[100]; gets(a); gets(b);…… 题解列表 2023年10月09日 0 点赞 0 评论 187 浏览 评分:0.0
字符串连接 摘要:```cpp #include using namespace std; int main() { string s,t; getline(cin,s); getline(…… 题解列表 2023年09月18日 0 点赞 0 评论 189 浏览 评分:6.0
自定义函数之字符串连接java 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2023年09月13日 0 点赞 0 评论 230 浏览 评分:0.0