C语言程序设计教程(第三版)课后习题12.5 (C语言代码) 摘要:#include<stdio.h>int move(value, n){ int a[32]; int i; for(i=0;i<32;i++) a[i]=value%2,value=value/2…… 题解列表 2017年12月05日 0 点赞 0 评论 835 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:首先看清题目,明白当n=5时,母牛数量为6的含义,然后慢慢列数列,找规律,你会发现n>4时,第n年的母牛数量等于第n-1年母牛的数量在再上第n-3年母牛的数量(因为这些母牛都会在他们的第四年…… 题解列表 2017年12月05日 0 点赞 0 评论 680 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题8.4 (C语言代码) 摘要:#include<stdio.h> void change(int a[][3]) { int i,j,t; for(i=0;i<3;i++) { for(j=i;j<3;j++…… 题解列表 2017年12月05日 13 点赞 6 评论 738 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:注意事项: "c="参考代码:#include<stdio.h>int main(){ float f; scanf("%f",&f); printf("c…… 题解列表 2017年12月05日 0 点赞 0 评论 604 浏览 评分: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 评论 852 浏览 评分: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 评论 771 浏览 评分: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 评论 592 浏览 评分: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 评论 860 浏览 评分: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 评论 623 浏览 评分:0.0
【偶数求和】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(void){ int n,m; int i = 0; //用 i 控制整个循环…… 题解列表 2017年12月05日 1 点赞 0 评论 1076 浏览 评分:0.0