RE: [Dev-C++] Help using the STL please!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-07-07 17:48:18
|
You'll be pleased to hear Ioannis that I've been following your example of
where to put 'using namespace std;' for a while now (because we don't want
to defeat the purpose of the namespace system do we?) but I just typed it
into the example as-is to ensure I got it right. Bit paranoid y'see lol.
Thanks,
Daniel
>From: "Ioannis Vranos" <iv...@em...>
>To: <dev...@li...>
>Subject: RE: [Dev-C++] Help using the STL please!
>Date: Mon, 7 Jul 2003 20:40:35 +0300
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Daniel Glenfield
> > Sent: Monday, July 07, 2003 7:21 PM
> > To: dev...@li...
> > Subject: [Dev-C++] Help using the STL please!
> >
> >
> > Hi guys,
> > page 1 of the book I'm going through and the code doesn't
> > work. Header
> > problem? Possibly. Take a look.
> > It is complaining that 'sort' is undeclared. Now it
> > auto-helps me with the
> > function paramter list so it knows of it, but it will not
> > compile under VC++
> > 6.0
>
>
>In C++98/C99 if the execution reaches the end of main() it is as if you
>return 0;
>
>
> >
> > P.S. The book example doesn't say what headers to include,
> > plus it has int
> > main(), and no return value for the function. So mine looks slightly
> > different in those respects.
> >
> > // Include the Standard Template Library
> > #include <list>
> > #include <vector>
> > #include <iostream>
> > #include <string>
>
>
>#include <algorithm>
>
>
>
> > using namespace std;
>
>Nope.
>
>
>
> > int main(int argc, char** argv)
> > {
>
>using namespace std;
>
>
>
>
>
>
>Ioannis Vranos
>
>* Programming pages: http://www.noicys.freeurl.com
>* Alternative URL 1: http://run.to/noicys
>* Alternative URL 2: http://www.noicys.cjb.net
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
>_______________________________________________
>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
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
|