#include #include #include "stack.h" using namespace std; int main() { stack S(10); S.push("time card"); S.push("queen of hearts"); S.push("ace of spades"); S.push("ace of arrows"); S.push("joker"); S.push("ace card"); S.push("credit card"); S.push("gift card"); S.push("debit card"); S.push("maple scrap"); S.push("magic carp"); S.push("lat card"); cout << S.pop() << endl; cout << S.pop() << endl; S.push("king of diamonds"); S.push("birthday card"); S.push("world card"); S.push("pokemon card"); S.push("flash card"); S.push("room card"); S.push("metal card"); S.push("schweller card"); cout << S.pop() << endl; cout << S.pop() << endl; cout << S.pop() << endl; while (!S.empty()) { cout << S.pop() << endl; } return 0; }