blob: 61d564b34f1c429b715f3cdca98ca06859149421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//! [0]
Q3ValueStack<int> stack;
stack.push( 1 );
stack.push( 2 );
stack.push( 3 );
while ( ! stack.isEmpty() )
cout << "Item: " << stack.pop() << endl;
// Output:
// Item: 3
// Item: 2
// Item: 1
//! [0]
|