From 518f00f2ed22391ecc48d74d558c7dd0721c3fc2 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 9 Apr 2020 19:35:51 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du5/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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