RE: [Dev-C++] Help using the STL please!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@em...> - 2003-07-07 17:40:50
|
> -----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
|