Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "LinkedList.h"
- int main() {
- cout << "=== regular ===" << endl;
- LinkedList<string> myList;
- myList.append("first");
- myList.append("second");
- myList.append("third");
- myList.append("fourth");
- myList.display();
- cout << "=== sorted ===" << endl;
- SortedLinkedList<string> myList2;
- myList2.insert("once");
- myList2.insert("upon");
- myList2.insert("a");
- myList2.insert("time");
- myList2.display();
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement