Simple C++ stack