摘要: c--Computer Game #include <stdio.h> int main(){ int a, b, i, j; char x[101], y[101]; scanf("%d", &a); for (i = 0; i < a; i++){ scanf("%d", &b); getcha 阅读全文
posted @ 2022-01-23 22:50 方振宇 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> #define N 5 typedef struct student{ long no; char name[20]; int score; } STU; void input(STU s[], int n); int findMinlist(STU s[] 阅读全文
posted @ 2021-12-28 20:09 方振宇 阅读(24) 评论(1) 推荐(0) 编辑
摘要: 1 #include <stdio.h> #define N 5 int binarysearch(int *x, int n, int item); int main(){ int a[N] = {2, 7, 19, 45, 66}; int i, index, key; printf("数组a中 阅读全文
posted @ 2021-12-15 11:18 方振宇 阅读(9) 评论(1) 推荐(0) 编辑
摘要: 1_1 #include <stdio.h> #define N 5 void output(int x[], int n); int main(){ int x[N] = {9, 55, 30, 27, 22}; int i, k, t; printf("original array:\n"); 阅读全文
posted @ 2021-12-12 16:15 方振宇 阅读(18) 评论(1) 推荐(0) 编辑
摘要: 1_1 #include<stdio.h> const int N = 4; int main(){ int a[N]={2,0,2,1}; char b[N]={'2','0','2','1'}; int i; printf("sizeof(int)=%d\n",sizeof(int)); pri 阅读全文
posted @ 2021-12-01 11:33 方振宇 阅读(20) 评论(1) 推荐(0) 编辑
摘要: #include<stdio.h> long long fac(int n); int main(){ int i,n; printf("Enter n:"); scanf("%d",&n); for (i=1;i<=n;i++) printf("%d! = %11d\n",i,fac(i)); r 阅读全文
posted @ 2021-11-24 11:47 方振宇 阅读(9) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-11-11 14:44 方振宇 阅读(43) 评论(4) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-27 20:14 方振宇 阅读(32) 评论(1) 推荐(0) 编辑