From 6a3147e7b2537e50e143b25ec6f9c55ae65665bf Mon Sep 17 00:00:00 2001 From: BalqissAtikah Date: Sun, 9 Feb 2020 22:12:58 +0700 Subject: [PATCH] Balqis Sayyidahtul Atikah 1301193480 IF-43-05 --- ASD_Task_2.layout | 16 ++++----- list.cpp | 92 ++++++++++++++++++++++++++++------------------- list.h | 6 ++-- operation.cpp | 22 ++++++++++-- 4 files changed, 86 insertions(+), 50 deletions(-) diff --git a/ASD_Task_2.layout b/ASD_Task_2.layout index e69ac9c..1383d5b 100644 --- a/ASD_Task_2.layout +++ b/ASD_Task_2.layout @@ -4,27 +4,27 @@ - + - + - + - + - + - + - + - + diff --git a/list.cpp b/list.cpp index f61d73d..2d98e44 100644 --- a/list.cpp +++ b/list.cpp @@ -5,9 +5,7 @@ void createList(List &L) { * FS : set first(L) with Null */ //-------------your code here------------- - cout<<"your code here"< info(Prec)){ + Prec=next(Prec); + } + if (x!=info(Prec)){ + if(x>info(Prec)){ + insertLast(L, P); + } else if(x