C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[3][3],sum=0,sum1=0; for(int i=0; i<3; i++) { for…… 题解列表 2017年12月05日 0 点赞 0 评论 609 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:当在第四天及其以前时,第几天就有多少头牛;然后从第五天开始,就是在第四天的基础上,加上n(n-1)/2,这样子,然后,就可以设计程序了。注意事项:参考代码:#include <stdio.h…… 题解列表 2017年12月05日 0 点赞 0 评论 727 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:取余的办法很麻烦,这里我的思路是采用字符数组进行存储,这样即使位数多余5位也可以实现题目的要求。注意事项:参考代码:#include <stdio.h>char a[100];int mai…… 题解列表 2017年12月05日 0 点赞 0 评论 653 浏览 评分:0.0
【偶数求和】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(void){ int n,m; int i = 0; //用 i 控制整个循环…… 题解列表 2017年12月05日 1 点赞 0 评论 1094 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int I; int sum=0; scanf("%d",&I); switch(I/1…… 题解列表 2017年12月05日 0 点赞 0 评论 635 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,b,c,d,e; //abcde is five bit integer in…… 题解列表 2017年12月05日 0 点赞 0 评论 883 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:除了for循环,还是用了pow()函数注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){int a = 2, i, n, s =…… 题解列表 2017年12月05日 0 点赞 0 评论 598 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:#include<stdio.h> #include<string.h> void link(char *a,char *b) { a=strcat(a,b); puts(a); …… 题解列表 2017年12月05日 4 点赞 1 评论 778 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.11 (C语言代码) 摘要:#include<stdio.h>struct node{ int date; struct node *next;};int main(){ int n,i; scanf("%d",&n); …… 题解列表 2017年12月05日 0 点赞 0 评论 866 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:注意事项: "c="参考代码:#include<stdio.h>int main(){ float f; scanf("%f",&f); printf("c…… 题解列表 2017年12月05日 0 点赞 0 评论 606 浏览 评分:0.0