السلام عليكم
هذا هو السؤال
In this question you’re asked to design and implement OrderList class, and write a main
program to use this class .Don’t use the ADT you should implement your own oneThe OrderList class should have the following methods- Print All Lists :List1,List2,Lis
- Insert: to add a new item
- Remove: removes an item from the this
- Print: to print all the item in the list
- Merge: which accepts two list, merges them in an new one and returns the
- new list
- SplitAt: splits into two lists from the given element
Example suppose that List1 list2 are of OrderList
List1 : 5 12 13 20 55 62
List2.SplitAt(List1,13)
Then List1 and List2 will be as
List1 :5 12
List2 13 2055 62
The class should have
- default constructor which creates an empty list
- default destructor that should delete the space occupied by the list
The main program should have at least three Lists
- Create List1
- Add items to list
- Remove an item N from the List1
- Print all items in list1
- Split List1 at item M to List1 ,List2
- Print List1 ,List2
- Merge List1, List2 to form List3
الروابط المفضلة