From 5392648bf7998f39f2c5f3a34948388f2cdbb937 Mon Sep 17 00:00:00 2001 From: pfwtzfkoe <3296553455@qq.com> Date: Sun, 12 Nov 2023 23:05:51 +0800 Subject: [PATCH] ADD file via upload --- 4 (1).c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 4 (1).c diff --git a/4 (1).c b/4 (1).c new file mode 100644 index 0000000..88cd129 --- /dev/null +++ b/4 (1).c @@ -0,0 +1,73 @@ +#include +typedef struct{ + int Id; + int class; + float a,b,c; + float total; +}Student; +void sort(Student *person,int len) +{ + int i; + int j; + for(i=0;iperson[j].class||(person[k].class==person[j].class&&person[k].total