#include <iostream>
#include <string>
#include "LinkedList.h"
using namespace std;
void printList(const LinkedList<string>& list)
{
for (int i = 0; i < list.getSize(); i++)
{
cout << list.get(i) << " ";
}
cout << endl;
}
int main()
{
LinkedList<string> list;
list.add("America");
cout << "(1) ";
printList(list);
list.add(0, "Canada");
cout << "(2) ";
printList(list);
list.add("Russia");
cout << "(3) ";
printList(list);
list.add("France");
cout << "(4) ";
printList(list);
list.add(2, "Germany");
cout << "(5) ";
printList(list);
list.add(5, "Norway");
cout << "(6) ";
printList(list);
list.add(0, "Netherlands");
cout << "(7) ";
printList(list);
list.removeAt(0);
cout << "(8) ";
printList(list);
list.removeAt(2);
cout << "(9) ";
printList(list);
list.removeAt(list.getSize() - 1);
cout << "(10) ";
printList(list);
return 0;
}