Re: [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-05-01 19:34:56
|
Yes, I put "using namespce std;" I made sure of it and tried again, I still get compiling error: undefined symbol "iterator". Jess ________________________________ From: Heedle Blambeedle <hee...@gm...> To: John Higgins <jhi...@ya...> Cc: Dev...@li... Sent: Tuesday, April 28, 2009 8:25:04 PM Subject: Re: [Dev-C++] Iterator for stack and queue 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 |