Exemple #1
0
inline void print(DoubleLinkedList &dll1, DoubleLinkedList &dll2,
                  DoubleLinkedList &dll3, DoubleLinkedList &dll4)
{
    cout << "Size of the list1: " << dll1.getNumberElements() << endl;
    cout << "Size of the list2: " << dll2.getNumberElements() << endl;
    cout << "Size of the modList1: " << dll3.getNumberElements() << endl;
    cout << "Size of the modList2: " << dll4.getNumberElements() << endl << endl;
}
Exemple #2
0
void changer(DoubleLinkedList list1)
{
    list1.insert("1");
    list1.insert("2");
    list1.insert("3");
    list1.insert("4");
    list1.insert("5");
    list1.insert("6");
    list1.insert("7");
    list1.insert("8");
    list1.insert("9");
    list1.insert("10");
    cout << "Inside changer function size of list is: " << list1.getNumberElements() << endl << endl;
}