上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页
摘要: 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 阅读(426) 评论(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 阅读(590) 评论(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 阅读(290) 评论(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 阅读(190) 评论(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 阅读(909) 评论(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 阅读(248) 评论(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 阅读(267) 评论(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 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 指向函数的指针 函数指针数组 阅读全文
posted @ 2020-05-21 16:06 jason2018 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #define N 5 3 struct Student { 4 char name[20]; 5 int num; 6 char sex; 7 int age; 8 char department[20]; 9 }; 10 void inputStud 阅读全文
posted @ 2020-05-21 11:54 jason2018 阅读(314) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页