#include
#include
#include
#include
using namespace std;
int main()
{
stack stck;
cout << "A stack for characters.\n";
cout << "Pushing A, B, C, and D.\n";
stck.push('A');
stck.push('B');
stck.push('C');
stck.push('D');
cout << "Now, retrieve those values in LIFO order.\n";
while(!stck.empty()) {
cout << "Popping: ";
cout << stck.top() << "\n";
stck.pop();
}
return 0;
}