1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
The List contains:
The list is empty!
head --> NULL
Calling InsertFist function:
The List contains:
head --> [6, Barbara] --> [5, Putinino] --> [4, Esterina] --> [3, Matteo] --> [2, Piero] --> [1, Giuseppe] --> NULL
Calling InsertLast function:
The List contains:
head --> [6, Barbara] --> [5, Putinino] --> [4, Esterina] --> [3, Matteo] --> [2, Piero] --> [1, Giuseppe] --> [-1, 1] --> [-2, 2] --> [-3, 3] --> [-4, 4] --> [-5, 5] --> [-6, 6] --> [-7, 7] --> [-8, 8] --> [-9, 9] --> [-10, 10] --> [-11, 11] --> NULL
Calling RemoveFirst function:
Removing Node[6, Barbara]
head --> [5, Putinino] --> [4, Esterina] --> [3, Matteo] --> [2, Piero] --> [1, Giuseppe] --> [-1, 1] --> [-2, 2] --> [-3, 3] --> [-4, 4] --> [-5, 5] --> [-6, 6] --> [-7, 7] --> [-8, 8] --> [-9, 9] --> [-10, 10] --> [-11, 11] --> NULL
Calling RemoveLast function:
Removing Node[-11, 11]
head --> [5, Putinino] --> [4, Esterina] --> [3, Matteo] --> [2, Piero] --> [1, Giuseppe] --> [-1, 1] --> [-2, 2] --> [-3, 3] --> [-4, 4] --> [-5, 5] --> [-6, 6] --> [-7, 7] --> [-8, 8] --> [-9, 9] --> [-10, 10] --> NULL
Calling InsertFist function:
The List contains:
head --> [600, Barbara] --> [500, Putinino] --> [400, Esterina] --> [300, Matteo] --> [200, Piero] --> [100, Giuseppe] --> [5, Putinino] --> [4, Esterina] --> [3, Matteo] --> [2, Piero] --> [1, Giuseppe] --> [-1, 1] --> [-2, 2] --> [-3, 3] --> [-4, 4] --> [-5, 5] --> [-6, 6] --> [-7, 7] --> [-8, 8] --> [-9, 9] --> [-10, 10] --> NULL
*************Cleaning Memory********************
Destroying node [600, Barbara]
Destroying node [500, Putinino]
Destroying node [400, Esterina]
Destroying node [300, Matteo]
Destroying node [200, Piero]
|