help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.95.3 vs 3.3.2 - Help


From: red floyd
Subject: Re: 2.95.3 vs 3.3.2 - Help
Date: Wed, 20 Sep 2006 21:42:44 GMT
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Prasad wrote:
Hi Floyd,


Now it complains about less in the same line.


Also, it also complains about the below line,


list<unsigned int> getEntries (long  secs, int remove=1);



Anything in the standard library (STL) is in namespace std.

std::list<>
std::less<>

This also goes for cin, cout, endl, etc...

If you don't want to type out std::, then in your cpp file (not your h file), after all includes, put the line:

using namespace std;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]