Изменить 'du6/program.c'
This commit is contained in:
parent
f778c2aff0
commit
fc1741376f
@ -60,10 +60,6 @@ int mini;
|
||||
min=list[i].fname;
|
||||
mini=i;
|
||||
for(int j=i+1;j<=count;j++){
|
||||
if(strcmp(list[mini].fname,list[j].fname)==0 && list[j].num!=-1){
|
||||
list[j].num=-1;
|
||||
count--;
|
||||
}
|
||||
if(strcmp(min,list[j].fname)>0){
|
||||
min=list[j].fname;
|
||||
mini=j;
|
||||
@ -96,6 +92,13 @@ void print(struct LIS *list,int count,int places){
|
||||
}
|
||||
}
|
||||
void AAAAA(struct LIS* list, int count,int places){
|
||||
for(int i=0;i<count-1;i++){
|
||||
for(int j=i+1;j<count;j++){
|
||||
if(strcmp(list[i].fname,list[j].fname)==0 && list[j].num!=-1){
|
||||
list[j].num=-1;
|
||||
}
|
||||
}
|
||||
}
|
||||
int k=1;
|
||||
if(spase==1){
|
||||
places++;
|
||||
|
Loading…
Reference in New Issue
Block a user