From 3b27c820ffe5f2f4d9dec5df45edbc18eb24d028 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 9 Apr 2020 14:05:38 +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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/du5/program.c b/du5/program.c index 6e56e65..1fe9ebc 100644 --- a/du5/program.c +++ b/du5/program.c @@ -15,6 +15,7 @@ int keep(struct LIS *); int del(struct LIS *,int); void Sort_Num(struct LIS *,int); void Sort_Sname(struct LIS *,int); +void Sort_Fname(struct LIS *,int); void print(struct LIS *,int); @@ -24,6 +25,7 @@ int count=keep(list); int pult=del(list,count); Sort_Num(list,count); Sort_Sname(list,count); +Sort_Fname(list,count); print(list,pult); return 0; } @@ -74,6 +76,18 @@ void Sort_Sname(struct LIS *list,int count){ } } } +void Sort_Fname(struct LIS *list,int count){ + struct LIS ilusion; + for(int i=count-1;i<0;i--){ + for(int j=0;j