幸运数 (C语言代码)|•ω•`)|•ω•`)|•ω•`) 摘要:#include<stdio.h>#define MAX 10000int lucknum(int *luck)//产生幸运数{ int i,j,p1=1,p2=MAX;//p1用来标记被除数数组下标…… 题解列表 2019年01月04日 5 点赞 2 评论 1172 浏览 评分:9.4
邮局选址问题 (C++代码) 贪心 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int a[10000],b[10000…… 题解列表 2019年01月04日 1 点赞 0 评论 2541 浏览 评分:9.9
杨辉三角 (Java代码) 摘要:解题思路: 使用二维数组保存数据注意事项: 生成数据可以直接输出,提高效率,不用二次遍历参考代码:import java.util.Scanner; public class Yan…… 题解列表 2019年01月04日 2 点赞 0 评论 1153 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:#include <stdio.h> #include <math.h> void delta1(int a,int b,int c){ float delta=b*b-4.0*a*…… 题解列表 2019年01月04日 0 点赞 0 评论 810 浏览 评分:0.0
优质题解 小白也能看懂的C语言结构体 (C语言爱好者) 摘要:解题思路:第一步:定义结构体为了书写方便,我将结构体重名为DATE。第二步:用数组保存平年的12个月份的天数。什么是平年?是否有人不知道,平年是和闰年相对的,平年的2月是28天,闰年的2月是29天,所…… 题解列表 2019年01月04日 6 点赞 2 评论 2590 浏览 评分:9.2
C语言程序设计教程(第三版)课后习题9.1 (C语言代码) 摘要:解题思路:注意事项:自己写的,不是很懂,但是对了,#define N 1#define S 2这没弄明白参考代码:#include<stdio.h>#define N 1#define S 2vo…… 题解列表 2019年01月04日 0 点赞 0 评论 615 浏览 评分:0.0
DNA (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void f(int a);void output(int a,int c);char str[100][100];int a[15][…… 题解列表 2019年01月04日 0 点赞 0 评论 989 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int hcf(int,int); int lcd(int,int,int); int u,v…… 题解列表 2019年01月04日 0 点赞 0 评论 528 浏览 评分:0.0
陶陶摘苹果 (C语言代码) 摘要:解题思路:输入有效值输出注意事项:看满足的条件参考代码:#include<stdio.h>int main() { int i,a[10]; for(i=0; i<10; i++) { do { …… 题解列表 2019年01月04日 0 点赞 0 评论 627 浏览 评分:0.0
使用“%”号求余数(投投) 摘要:解题思路:使用“%”号进行求余,当下标移动到超出数组的位置时通过求余数得出新的下标参考代码:int main() { int n,m,a[1024],i,b[1024]; …… 题解列表 2019年01月04日 0 点赞 0 评论 1266 浏览 评分:0.0