handoutmain.cc 558 Bytes
Newer Older
jkvis's avatar
jkvis committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#include <iostream>

#include "array.h"
#include "linkedlist.h"
#include "stlstack.h"
#include "stlvector.h"
#include "backspace.h"


int main(int, char* [])
{
    std::string invoer;
    std::cin >> invoer;

    std::cout << "Array Stack:        ";
    backspace<Array<char> >(invoer);
    std::cout << "Linked List Stack:  ";
    backspace<LinkedList<char> >(invoer);
    std::cout << "STL Vector Stack:   ";
    backspace<StlVector<char> >(invoer);
    std::cout << "STL Stack Stack:    ";
    backspace<StlStack<char> >(invoer);

    return 0;
} // main