diff --git a/xjxt6.cpp b/xjxt6.cpp new file mode 100644 index 0000000..18c421e --- /dev/null +++ b/xjxt6.cpp @@ -0,0 +1,83 @@ +#include +#include +typedef struct +{ + int id; + int mclass; + char name[20]; + float a,b,c; + float total; +}Student; +void sort(Student *person,int len) +{ + int i; + int j; + for(i=0;iperson[j].mclass||(person[k].mclass==person[j].mclass&&person[k].total