Programming in C++ Deleting 39 from an Unsorted List length index data 0 15 39 90 39 has been matched item 39 MAX LENGTH-1 16
16 Deleting 39 from an Unsorted List index : 1 item 39 length 4 data [ 0 ] 15 [ 1 ] 39 [ 2 ] -90 [ 3 ] 64 . . . [MAX_LENGTH-1] 39 has been matched
Programming in C++ Deleting 39 from an Unsorted List length index data 0 15 64 90 Placed copy of last list element into the position where 39 was before item 39 MAX LENGTH-1
17 Deleting 39 from an Unsorted List index : 1 item 39 length 4 data [ 0 ] 15 [ 1 ] 64 [ 2 ] -90 [ 3 ] 64 . . . [MAX_LENGTH-1] Placed copy of last list element into the position where 39 was before
Programming in C++ Deleting 39 from an Unsorted List length 3 index data 0 15 64 90 Decremented length item 39 MAX LENGTH-1 18
18 Deleting 39 from an Unsorted List index : 1 item 39 length 3 data [ 0 ] 15 [ 1 ] 64 [ 2 ] -90 [ 3 ] 64 . . . [MAX_LENGTH-1] Decremented length
Programming in C++ Printing the List void List: Print() ∥ Prints the list / Post: Contents of data [O. length-1 J have been output int index; for( index=0; index< length index++) cout < data index]<<endl 19
19 void List :: Print ( ) // Prints the list // Post: Contents of data [0 . . length-1 ] have been output { int index ; for ( index = 0 ; index < length ; index++ ) cout << data [ index ] << endl ; } Printing the List
Programming in C++ Sorting Arranging the components of a list into order( for instance, words into alphabetical order or numbers into ascending or descending order 20
20 Sorting Arranging the components of a list into order( for instance, words into alphabetical order or numbers into ascending or descending order)