摘要: #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; void sort(STU *pst, int n); int 阅读全文
posted @ 2021-01-01 14:12 刘佳迪 阅读(111) 评论(1) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 10 typedef struct student { int id; char name[20]; char subject[20]; float perf; flo 阅读全文
posted @ 2020-12-24 21:58 刘佳迪 阅读(60) 评论(1) 推荐(0)
摘要: #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] 阅读全文
posted @ 2020-12-16 19:53 刘佳迪 阅读(37) 评论(0) 推荐(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! = %lld\n", i, fac 阅读全文
posted @ 2020-12-03 19:08 刘佳迪 阅读(84) 评论(0) 推荐(0)
摘要: #include <math.h> #include <stdio.h> int main(){ float a, b, c, x1, x2; float delta,real,imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, &b 阅读全文
posted @ 2020-11-17 19:48 刘佳迪 阅读(96) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main (){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } #include<stdio.h> int 阅读全文
posted @ 2020-11-02 19:12 刘佳迪 阅读(53) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { printf("my stuno is:202083450004\n2020 r u crazy"); return 0; } #include <stdio.h> int main() { while(1) printf("21"); 阅读全文
posted @ 2020-10-19 22:13 刘佳迪 阅读(75) 评论(0) 推荐(0)