C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define MAX 100int main(){ int a,b,c,d; int i; char p[MAX]; a=b=c=d…… 题解列表 2017年07月17日 0 点赞 0 评论 1017 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,n; long s,sum=0; scanf("%d",&n); fo…… 题解列表 2017年07月17日 0 点赞 0 评论 958 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:最大公约数可以用迭代求出,最小公倍数要运用最大公约数。注意事项:从严格来说,两个数要区分大小的,不然会报错。尽管没有区分,还是能通过。参考代码:#include"stdio.h" int …… 题解列表 2017年07月17日 6 点赞 3 评论 2308 浏览 评分:9.9
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:题目没有难度,声明数组,利用循环给数组元素逐个赋值,然后比较出绝对值最大的数的同时把行,列赋值给声明的变量。最后输出注意事项:n行n列的矩阵是从1开始算的,不是0。ps:被这个坑了,怪我没理…… 题解列表 2017年07月18日 0 点赞 0 评论 1273 浏览 评分:9.9
C二级辅导-阶乘数列 (C语言代码) 摘要:解题思路:注意事项:别看我的.....参考代码:#include<stdio.h>int main(){ printf("2.74e+32"); return 0;}…… 题解列表 2017年07月19日 0 点赞 1 评论 400 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题7.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(void){ int N; int i, j; i…… 题解列表 2017年07月19日 0 点赞 0 评论 1364 浏览 评分:9.9
【计算直线的交点数】 (C语言代码) 摘要:解题思路:将n条直线排成一个序列,直线2和直线1最多只有一个交点,直线3和直线1,2最多有两个交点,……,直线n 和其他n-1条直线最多有n-1个交点。由此得出n条直线互不平行且无三线共点的最多交点数…… 题解列表 2017年07月22日 10 点赞 3 评论 3210 浏览 评分:9.9
C语言训练-计算t=1+1/2+1/3+...+1/n (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; double t=0,a=1; scanf("%d",&n); for…… 题解列表 2017年07月22日 0 点赞 0 评论 1726 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:解题思路:循环判断参考代码:void yuyi(char a[]) { int n = strlen(a); for (int i = 0; i < n; i++) { if (a[i]…… 题解列表 2017年07月23日 7 点赞 1 评论 1761 浏览 评分:9.9
宏定义 摘要:#include<stdio.h>#define Swap(a,b) t = b; b = a;a = tint main(){ int a,b,t; scanf("%d%d",&a,&b…… 题解列表 2017年07月23日 0 点赞 0 评论 1103 浏览 评分:9.9