摘要: 1、 #include <stdio.h> void fun(void) { static int times = 0; times++; printf("put_count: %d\n", times); } int main(void) { int n; puts("please input a 阅读全文
posted @ 2021-05-11 12:27 小鲨鱼2018 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> #define NUMBER 5 int main(void) { static double array[NUMBER]; int i; for(i = 0; i < NUMBER; i++) { printf("array[%d] = %.1f\n", 阅读全文
posted @ 2021-05-11 12:13 小鲨鱼2018 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> void sumup(int x[2][4][3], int y[4][3]) { int i, j, k; for(i = 0; i < 4; i++) { for(j = 0; j < 3; j++) { for(k = 0; k < 2; k++) 阅读全文
posted @ 2021-05-11 11:59 小鲨鱼2018 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> void multiply(int x[4][3], int y[3][4], int z[4][4]) { int i, j, k; for(i = 0; i < 4; i++) { for(j = 0; j < 4; j++) { for(k = 0; 阅读全文
posted @ 2021-05-11 11:32 小鲨鱼2018 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> #define NUMBER 7 int search(const int x[], int y[], int key, int n) { int i, times = 0; for(i = 0; i < n; i++) { if(x[i] == key) 阅读全文
posted @ 2021-05-11 11:13 小鲨鱼2018 阅读(52) 评论(0) 推荐(0) 编辑