*** test program for CList class
----- initial state
elm num : 0
current data : <null>
----- end of initial state
----- 2 data are appended
elm num : 2
element : "hello, this is 1st data"
element : "good morning, 2nd data !!"
current data : hello, this is 1st data
----- end of 2 data are appended
----- 2 data are prepended
elm num : 4
element : "whar do you think about 4th data?"
element : "hi, this is 3rd data"
element : "hello, this is 1st data"
element : "good morning, 2nd data !!"
current data : hello, this is 1st data
----- end of 2 data are prepended
normal order:
[0] "whar do you think about 4th data?"
[1] "hi, this is 3rd data"
[2] "hello, this is 1st data"
[3] "good morning, 2nd data !!"
reverse order:
[3] "good morning, 2nd data !!"
[2] "hello, this is 1st data"
[1] "hi, this is 3rd data"
[0] "whar do you think about 4th data?"
remove 1st line:
normal order:
[0] "hi, this is 3rd data"
[1] "hello, this is 1st data"
[2] "good morning, 2nd data !!"
reverse order:
[2] "good morning, 2nd data !!"
[1] "hello, this is 1st data"
[0] "hi, this is 3rd data"
remove 3rd line:
normal order:
[0] "hi, this is 3rd data"
[1] "good morning, 2nd data !!"
reverse order:
[1] "good morning, 2nd data !!"
[0] "hi, this is 3rd data"
remove last line:
normal order:
[0] "hi, this is 3rd data"
reverse order:
[0] "hi, this is 3rd data"
add lines:
normal order:
[0] "hi, this is 3rd data"
[1] "additional line"
[2] "more additional line"
reverse order:
[2] "more additional line"
[1] "additional line"
[0] "hi, this is 3rd data"
insert lines:
normal order:
[0] "inserted line"
[1] "hi, this is 3rd data"
[2] "additional line"
[3] "more inserted line"
[4] "more additional line"
reverse order:
[4] "more additional line"
[3] "more inserted line"
[2] "additional line"
[1] "hi, this is 3rd data"
[0] "inserted line"
----- cleared
elm num : 0
current data : <null>
----- end of cleared
bye.
