花落的新手代码 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define AUM(x,y){int t;t=x;x=y;y=t;} //宏定义,数值交换void sushu(int (*p)…… 题解列表 2017年12月24日 0 点赞 0 评论 1602 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.3 (C语言代码) 摘要:解题思路:注意事项:注意n,m,max,min初始值对程序的影响。参考代码:#include<stdio.h>void input(int a[]);void action(int a[]);void…… 题解列表 2017年12月24日 2 点赞 0 评论 1192 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.9 (C语言代码) 摘要:解题思路:注意事项:题干说的是第n次落下时参考代码:# include <stdio.h>int main(){ double i, m, n, h = 0.0, h1; scanf("%lf %lf…… 题解列表 2017年12月24日 0 点赞 0 评论 1429 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:用数组来解这道题比较简单;注意事项:for循环中的if条件与后面的总和(h = a[i] / b[i])易倒换,导致出现垃圾值。参考代码:# include <stdio.h>int mai…… 题解列表 2017年12月24日 1 点赞 0 评论 1704 浏览 评分:0.0
Manchester-C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:把1150 题的加法换为减法,分母换为i的平方;#include <stdio.h> int main() { double t = 1; int m…… 题解列表 2017年12月23日 16 点赞 0 评论 2614 浏览 评分:9.0
优质题解 Manchester- C语言训练-计算一个整数N的阶乘(多方法回合) 摘要:解题思路:思路1.根据公式n!=1*2*3*...n;#include <stdio.h> int main() { int n,jc=1; scanf("%d",&n); for(…… 题解列表 2017年12月23日 19 点赞 8 评论 4946 浏览 评分:9.2
C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:利用数组的下标来找规律 然后用if语句实现最终求和注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3] = { 0 }; int i, j; …… 题解列表 2017年12月23日 0 点赞 0 评论 1503 浏览 评分:0.0
优质题解 Manchester- C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:令i从1到N;把所有 1/i 的商加起来;输出和,保留六位小数;注意事项:把变量范围定义得大一些,避免出错;参考代码:#include <stdio.h> int main() { …… 题解列表 2017年12月23日 16 点赞 12 评论 6093 浏览 评分:7.5
C语言训练-列出最简真分数序列* (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a=1,b=3,c=7,d=9; printf("%d/40,%d/40,%d/40,%d/…… 题解列表 2017年12月23日 0 点赞 0 评论 1365 浏览 评分:0.0