[编程入门]自定义函数之字符串连接,简单粗暴,通俗易懂。看一眼就懂 摘要:解题思路:前段时间看到大家对这题有争议,这次我来一无脑解法注意事项:注意把多于的0跳过参考代码:#include<stdio.h>#include<string.h>int main(){ cha…… 题解列表 2022年02月13日 0 点赞 0 评论 438 浏览 评分:7.3
1032: [编程入门]自定义函数之字符串连接 摘要:```cpp #include int main() { char s[1000],t[1000]; gets(s); int len1=strlen(s); gets(t); …… 题解列表 2022年12月06日 0 点赞 0 评论 728 浏览 评分:7.3
自定义函数之字符串连接 摘要:解题思路:这段代码实现的是两个字符串的连接功能。首先,让我们分析mystrcat函数:while(*ch1)循环会一直执行,直到ch1指向的字符是空字符(也就是字符串的结尾)。这个循环的作用是找到ch…… 题解列表 2023年11月08日 0 点赞 1 评论 222 浏览 评分:7.3
优质题解 C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路和注意事项:思路:定义两个数组,分别用gets()函数输入,再用strcat()进行连接,最后用puts()函数进行输出即可。函数用法:gets()和puts()函数请见上一篇文章。 …… 题解列表 2018年04月27日 14 点赞 60 评论 16356 浏览 评分:6.3
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>int main(){ …… 题解列表 2018年01月15日 10 点赞 2 评论 1345 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题8.6 (C++代码)用函数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void insert(char*s1,char*s2,char*s){ int i=0…… 题解列表 2018年05月10日 5 点赞 0 评论 869 浏览 评分:6.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:```c #include int main() { int i = 0,j=0; char a[1000], b[500]; fgets(a, sizeof(a)…… 题解列表 2020年01月27日 0 点赞 1 评论 1306 浏览 评分:6.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:一段简单的代码解决问题 #include #include int main() { char a[10],b[10]; gets(a); gets(b); strcat(a,…… 题解列表 2020年02月05日 0 点赞 1 评论 206 浏览 评分:6.0
[编程入门]自定义函数之字符串连接-题解(Java代码) 摘要:```java public static void main(String[] args) { Scanner input=new Scanner(System.in)…… 题解列表 2020年02月29日 0 点赞 0 评论 809 浏览 评分:6.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:```c #include #include void lianjie(char a[],char b[]); int main(){ char a[100],b[100]; gets…… 题解列表 2020年03月11日 0 点赞 0 评论 745 浏览 评分:6.0