Re: [Dev-C++] Iterator for stack and queue
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Heedle B. <hee...@gm...> - 2009-04-29 03:25:20
|
Probably forgot using namespace std; On Sun, Apr 26, 2009 at 2:43 PM, John Higgins <jhi...@ya...> wrote: > 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 > > > > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |