| delorie.com/archives/browse.cgi | search |
| Newsgroups: | comp.os.msdos.djgpp |
| From: | manni DOT heumann AT gmx DOT de (Manni Heumann) |
| Subject: | Re: stl samples or tutorial |
| References: | <20000707085347 DOT 69858 DOT qmail AT hotmail DOT com> |
| X-Newsreader: | News Xpress 2.01 |
| Mime-Version: | 1.0 |
| Date: | Fri, 07 Jul 2000 14:01:23 GMT |
| NNTP-Posting-Host: | ppp36-108.hrz.uni-bielefeld.de |
| Message-ID: | <3965e2b6_1@news.uni-bielefeld.de> |
| X-Trace: | 7 Jul 2000 16:01:26 +0200, ppp36-108.hrz.uni-bielefeld.de |
| Lines: | 38 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Did you try this? I don't think so.
See my previous post.
"Nimrod Abing" <n_abing AT hotmail DOT com> wrote:
>// file: staktest.cc
>//
>// Should compile using gxx
>//
>// gxx -o staktest.exe staktest.cc
>//
>#include <iostream>
>#include <stack>
>#include <deque>
>
>
>int main ()
>{
> stack<deque<int> > s;
> s.push (42);
> s.push (101);
> s.push (69);
> while (!s.empty ())
> {
> cout << s.top () << endl;
> s.pop ();
> }
>
> return 0;
>}
>
>
--
Manni
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |