diff --git a/du5/program.c b/du5/program.c index 27a28a4..be18faa 100644 --- a/du5/program.c +++ b/du5/program.c @@ -32,6 +32,7 @@ int keep(struct LIS *list){ char *array; int stop,count; int num; +int ss; for(int i=0; stop!=EOF; i++){ array=(char*)malloc(100); stop =0; @@ -63,20 +64,15 @@ int del(struct LIS *list,int count){ } void Sort_Struct(struct LIS *list,int count){ + struct LIS ilusion; - for(int i=0;i1;j--){ - if(strcmp(list[i].sname,list[j].sname)!=0){ - for(int k=0;klist[j].sname[k]){ - ilusion=list[i]; - list[i]=list[j]; - list[j]=list[i]; - } - } + for(int j=count;j>i;j--){ + if(list[i].num