[Dev-C++] Iterator for stack and queue
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: John H. <jhi...@ya...> - 2009-04-26 21:43:57
|
I read in a book: "...You could use the STL stack class, which has an iterator...".
When I coded the following, I got a compiling error: undefined symbol "iterator"
#include <stack>
stack<int> numbers;
stack<int>::iterator cursor;
I was trying to use iterator to display the content of a stack.
Can anyone help me?
Jess
|