From 1d3eb8ba4b5c285fc75a82457fd66dabba65e33b Mon Sep 17 00:00:00 2001 From: pqzbgempc <2193876517@qq.com> Date: Wed, 20 Nov 2024 18:40:45 +0800 Subject: [PATCH] ADD file via upload --- xjxt4.cpp | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 xjxt4.cpp diff --git a/xjxt4.cpp b/xjxt4.cpp new file mode 100644 index 0000000..c092a80 --- /dev/null +++ b/xjxt4.cpp @@ -0,0 +1,70 @@ +#include +typedef struct{ + int Id; + int mclass; + float a,b,c; + float total; +}Student; +void sort(Student *person,int len) +{ + for(int i=0;iperson[j].mclass||(person[k].mclass==person[j].mclass&&person[k].total