delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/07/13:31:03

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: stl samples or tutorial
Date: Fri, 07 Jul 2000 17:16:59 GMT
Organization: always disorganized
Lines: 35
Message-ID: <3966106b.13785761@news.freeserve.net>
References: <20000707085347 DOT 69858 DOT qmail AT hotmail DOT com> <000e01bfe819$4f8e1040$0307028a AT prmivv03>
NNTP-Posting-Host: modem-102.wisconsin.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 962990219 20149 62.137.99.102 (7 Jul 2000 17:16:59 GMT)
NNTP-Posting-Date: 7 Jul 2000 17:16:59 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Petr Maxa wrote:

> This is a multi-part message in MIME format.

Please don't post in MIME.

> Hi Nimrod,
> thanks for the source, I've compiled as You recomended, but got the same
> errors (see in atachment).
> 
> Everythink works right when I change
> stack<deque<int> > s;
> for
> stack<int> s;,

This change is clearly necessary, but you should also put

    using namespace std;

after the #includes (or use some other method of indicating the
namespaces).  You can also remove the #include <deque> as you're
no longer using it.

> but I am not sure if it is the same.

I think it now does what it was supposed to do.  The original seems
to have been written for a non-standard STL (if that makes any sense).

> I do not have access to any other compiler which support stl, so I ask in
> this group.

Borland C++ 5.5 behaves the same, except that it insists on the
"using namespace std;", whereas DJGPP somehow manages without.

S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019