diff --git a/du5/program.c b/du5/program.c index 0748ea1..29e65b3 100644 --- a/du5/program.c +++ b/du5/program.c @@ -25,7 +25,6 @@ int count=keep(list); int pult=del(list,count); Sort_Num(list,count); Sort_Sname(list,count); -//Sort_Fname(list,count); print(list,count); return 0; } @@ -33,9 +32,10 @@ print(list,count); int keep(struct LIS *list){ int count; for(count=0;fscanf(stdin,"%d %s %s",&list[count].num, list[count].sname, list[count].fname)==3;count++){ - for(int i=0;list[count].fname[i]!='\0';i++); +// for(int i=0;list[count].fname[i]!='\0';i++); } return count; + } int del(struct LIS *list,int count){ @@ -86,12 +86,17 @@ void Sort_Sname(struct LIS *list,int count){//Selection Sort void print(struct LIS *list,int count){ - printf("Vysledky:\n"); - for(int i=0;i