C语言程序设计教程(第三版)课后习题8.5 (C语言代码)用puts_s竟然错误??? 解题思路:字符串首地址用指针传递给函数fun,然后利用指针游走将h指向字符串最后一位,再进行代换操作。注意事项:里面puts_s提交会报错,最后我用的是puts(p);通过。参考代码:#includevoidfun(char*p){chartemp;char*h=p;while(*h 题解列表 2018年07月09日 0 点赞 4 评论 702 浏览 评分:0.0
题解1031运行正常,为啥提交了提示错误呢? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 0, x = 0,j=0; char str[50],ch; whil…… 题解列表 2018年06月12日 0 点赞 0 评论 735 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:/* 2018年5月1日08:46:03 目的: 写一函数,使输入的一个字符串按反序存放,在主函数中输入输出反序后的字符串。 */ #include <stdio.h> #includ…… 题解列表 2018年05月01日 0 点赞 0 评论 1709 浏览 评分:0.0
优质题解 C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 解题思路和注意事项:这道题我之前写了一篇题解的,本来是一个很简单的题,然后一个朋友的结果满屏的烫烫烫,让我帮他看看,那我正好在这里写一下,大家也可以了解一下其他方法。首先说一下会用到的标准库函数,gets(),puts(),strlen(), 题解列表 2018年04月27日 41 点赞 92 评论 23985 浏览 评分:8.9
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:参考代码:#include<stdio.h> #include<string.h> int main() { char a[1000],b[1000]; int i,l; gets(…… 题解列表 2018年04月26日 0 点赞 0 评论 2382 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void test(char a[20],char b[20]);int main(){ ch…… 题解列表 2018年04月19日 0 点赞 0 评论 1167 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void Reverse(char str[],int n) { for(int i=…… 题解列表 2018年04月15日 0 点赞 0 评论 1928 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; int i; gets(s); …… 题解列表 2018年04月02日 0 点赞 0 评论 1977 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)字符串相互赋值 以及需要注意的情况 摘要:参考代码如下:#include <stdio.h> #include <string.h> #define STR_LEN 256 void strconvert(char *str) …… 题解列表 2018年03月27日 1 点赞 0 评论 1931 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)超短代码,容易理解 摘要:#include<stdio.h> #include<string.h>//头文件,准备调用strlen函数 int main()//主函数 { char a[1000];//申请空间…… 题解列表 2018年03月27日 22 点赞 4 评论 2034 浏览 评分:6.0