From cbf6f5f42d9154b699dbd70948cb08ebdf0fade1 Mon Sep 17 00:00:00 2001 From: unknown <18408000232@stu.hut.edu.cn> Date: Sun, 13 Jan 2019 12:49:51 +0800 Subject: [PATCH] first commit --- 刘叶淼.cpp | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 刘叶淼.cpp diff --git a/刘叶淼.cpp b/刘叶淼.cpp new file mode 100644 index 0000000..d332b78 --- /dev/null +++ b/刘叶淼.cpp @@ -0,0 +1,164 @@ +//333333333333 +void case3() {//ۺϢ + int v; + LIGHT(); + printf("ʾ1,ѧ2,.룺"); + GREEN(); + scanf("%d",&v); + init() ; + if(v==1) { + stuid_sort(0,i_entry); + i_printf(); + } + if(v==2) { + name_sort(0,i_entry); + i_printf(); + } + file_save(); +} +void stuid_sort(int I,int L)//鲢ѧɵ͵ +{ int i,mid; + system("cls"); + if(I>=L) + return ; + mid=(I+L)/2; + stuid_sort(I,mid); + stuid_sort(mid+1,L); + int I1=I,r1=mid,r2=L,I2=mid+1; + int t=0; + while(I1<=r1&&I2<=r2) + { + if(DATA[I1].stuid=0;i--) + DATA[i+I]=temp[i]; +} +void name_sort(int I,int L)//鲢ɵ͵ +{ int i,mid; + system("cls"); + if(I>=L) + return ; + mid=(I+L)/2; + stuid_sort(I,mid); + stuid_sort(mid+1,L); + int I1=I,r1=mid,r2=L,I2=mid+1; + int t=0; + while(I1<=r1&&I2<=r2) + { + if(DATA[I1].stuid=0;i--) + DATA[i+I]=temp[i]; +} +/* +void stuid_sort() {//ѧ ð㷨 + int r,t; + system("cls"); + puts("***************>>>>>>ǰģʽѧ״̬<<<<<<*************"); + //struct student temp; + for(r=1; r>>>>>ǰģʽ״̬<<<<<<*************"); + //struct student temp; + for(j=1; j>>>>>ǰģʽΪѧϢ޸״̬<<<<<<*************"); + LIGHT(); + printf("ѡʽ1.ѧż\t2.. 룺"); + GREEN(); + flag=0; + scanf("%d",&t); + if(t==2) { + LIGHT(); + init(); + printf("Ҫ޸ĵѧ"); + scanf("%s",&DATA[i_entry].name); + GREEN(); + for(i=0; i