// Prog: stack_example.cpp #include #include "stack.h" int main() { { ifmp::stack s; s.push (1); s.push (3); s.push (2); std::cout << s << "\n"; // 2 3 1 } // s runs out of scope return 0; } // g++ -Wall -pedantic-errors stack.cpp stack_example.cpp -o stack_example