#include #include "lab4list.h" #include "lab4alist.h" #include "lab4llist.h" using namespace std; int main() { // Create a list. You ought to be able to simply // change this to LinkedList if you did everything correctly. ArrayList l; // Insert at head 3 objects l.insert(3, 0); l.insert(2, 0); l.insert(1, 0); // l should now be [1, 2, 3] cout << l << endl; l.insert(4, 3); // l should now be [1, 2, 3, 4] cout << l << endl; l.remove(2); // l should now be [1, 2, 4] cout << l << endl; l.remove(0); // l should now be [2, 4] cout << l << endl; l.remove(1); // l should now be [2] cout << l << endl; }