Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_cpp_max

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
I would like to know if i could use _cpp_max to compare 2 double. If not, could i find a method which do that, or must i implement it?

thanks in advance

jayjay
 
I have never heard of _cpp_max but the well known macro

#define MAX(a,b) (a>b ? a:b)

should work for you

Matt
 
Although it's quite easy, you don't have to implement it.
You can use _cpp_max().

-- ralf
 
use such type of objects:
struct cc
{
union
{
int a;
double b;
};
operator int(){return a;}
operator double(){return b;}
operator=(int _a){a=_a;}
operator=(double _b){b=_b;}
}; John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top