template void Sortable_list::sort_interval(int start, int increment) /* Post: the sublist defined by "increment" has been sorted? Uses: Methods for the class List_entry; the contiguous List implementation of Chapter 6 --supposed to be a "modified insertion sort" ... */ { char anykey; int first_unsorted; // position of first unsorted entry int position; // searches sorted part of list int current; // holds the entry temporarily removed from list //cout<<"inside the sort_interval\n"; //cout<<"increment is " <>anykey; for (first_unsorted = start+increment; first_unsorted < count; first_unsorted=(first_unsorted+increment)) if (entry[first_unsorted] < entry[first_unsorted - increment]) { // cout<<"inside the if entry ["< entry[ " <>anykey; position = first_unsorted; cout<<" position is " <>anykey; entry[position] = entry[position - increment]; cout<<"testing " <>anykey; position=(position-increment); // position is empty. // cout<<"testing after " <>anykey; //cout<<" position is " < start && entry[position-increment] > current); cout<<"dood?\n"; // cin>>anykey; entry[position] = current; } }