Re: [Dev-C++] Iterator for stack and queue
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Alessandro B. <ale...@is...> - 2009-04-27 19:42:37
|
Maybe you forget using namespace std; Alessandro John Higgins ha scritto: > > 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 > -- ************************************************ Prof. Alessandro Bugatti Docente di Informatica Istituto Tecnico Industriale Statale B. Castelli E-mail: ale...@is... Sito web: www.imparando.net ************************************************ |