C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:其实问题不想要的那么复杂,最简单的就是最好的,符合题目要求就是最好的,能编译成功就是最好的 注意事项:简单的问题不要复杂化了参考代码://写一函数,将两个字符串连接#include<stdi…… 题解列表 2018年12月31日 0 点赞 0 评论 466 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int fun(char a[],char b[]) { strcat(b,a); …… 题解列表 2019年03月04日 0 点赞 0 评论 818 浏览 评分:0.0
镜牙 ------C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<string.h> int main { int i,len1=0,len2=0; …… 题解列表 2019年03月05日 0 点赞 0 评论 946 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int lian(char a[], char b[]){ int m = strlen(a)…… 题解列表 2019年03月18日 0 点赞 0 评论 655 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 (C++代码) 摘要:#include<iostream> #include<cstring> using namespace std; int main() { char st1[100],st2[1…… 题解列表 2019年05月10日 0 点赞 0 评论 1279 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 (C++代码)用C++的输入输出就行 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){char a[999],b[999];while(cin>>a>>b)c…… 题解列表 2019年05月24日 0 点赞 0 评论 690 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-(指针版) 摘要:题解如下: #include void connect(char *s,char *t,char *q) { int i=0; for(;*s!=…… 题解列表 2019年06月17日 0 点赞 0 评论 579 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:## 一、第一种方法 用指针 void link(char *s,char *t) { while (*s != '\0') { s+…… 题解列表 2019年06月19日 0 点赞 0 评论 1055 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:和1031差不多 要点: 要puts的最后一条要加上'\0' ```c #include #include int stick(char a[],char b[]) { i…… 题解列表 2019年08月15日 0 点赞 0 评论 775 浏览 评分:0.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:思路: 1、把字符串2的首端接在字符串1的末尾处,必须要明确两个字符串的长度。 2、连接成为新的字符串后,必须在字符串的末尾加上'\0',否则会出现乱码; 3、明确要调用的变量。 参考代码: …… 题解列表 2019年08月20日 0 点赞 0 评论 578 浏览 评分:0.0