06 2020 档案

摘要:1 #include <stdio.h> 2 3 int main(void) 4 { 5 int n, i, j, length, k, m; 6 char array[10][10]; 7 int x1, y1, x2, y2; 8 int isError = 0; 9 int isRight 阅读全文
posted @ 2020-06-18 15:53 jason2018 阅读(256) 评论(0) 推荐(0) 编辑
摘要:1 #include <stdio.h> 2 3 int main(void) 4 { 5 int n, i, j, number; 6 int array[10][10]; 7 int top, bottom, left, right; 8 9 scanf("%d", &n); 10 top = 阅读全文
posted @ 2020-06-18 14:24 jason2018 阅读(440) 评论(1) 推荐(0) 编辑
摘要:1 #include <stdio.h> 2 3 int main(void) 4 { 5 int n; 6 int i, j, array[11][11] = {{0}}; 7 8 scanf("%d", &n); 9 array[0][1] = 1; 10 //生成杨辉三角形 11 for (i 阅读全文
posted @ 2020-06-18 09:39 jason2018 阅读(622) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> //返回number装到箱子的索引 int myFunc(int array[], int length, int number) { int i, index = -1; for (i = 0; i < length; i++) { if (array[i] 阅读全文
posted @ 2020-06-17 09:39 jason2018 阅读(307) 评论(0) 推荐(0) 编辑
摘要:题目一开始没看懂 #include <stdio.h> //数组选择排序 void sortArray(int array[], int length) { int index, temp; for (int i = 0; i < length - 1; i++) { index = i; for 阅读全文
posted @ 2020-06-16 15:15 jason2018 阅读(194) 评论(0) 推荐(0) 编辑
摘要:用链表的方法解决 #include <stdio.h> #include <stdlib.h> typedef struct node { int index; int number; struct node *next; } NODE, *LINK; void addNode(LINK head, 阅读全文
posted @ 2020-06-15 15:03 jason2018 阅读(986) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> int max(int a, int b); int min(int a, int b); int main(void) { int num, a, b, c; int t, maxNum, midNum, minNum; int big, small, i; 阅读全文
posted @ 2020-06-07 19:08 jason2018 阅读(262) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> int main(void) { int a, b, c; int max, mid, min; scanf("%d%d%d", &a, &b, &c); if (a > b) { if (a > c) { max = a; if (b > c) { mid = 阅读全文
posted @ 2020-06-03 18:33 jason2018 阅读(272) 评论(0) 推荐(0) 编辑
摘要:这个题目的纯虚根问题搞的头大,其实没意思。 #include <stdio.h> #include <math.h> int main(void) { double a, b, c; scanf("%lf%lf%lf", &a, &b, &c); double delta = b * b - 4 * 阅读全文
posted @ 2020-06-03 15:28 jason2018 阅读(255) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示