what's the meaning of ~0 in cpp or c
Posted
by rima
on Stack Overflow
See other posts from Stack Overflow
or by rima
Published on 2010-06-08T17:09:02Z
Indexed on
2010/06/08
17:12 UTC
Read the original article
Hit count: 149
Hi what's the meaning of ~0 in this code????
somebody can analysis this code for me?
unsigned int Order(unsigned int maxPeriod = ~0) const
{
Point r = *this;
unsigned int n = 0;
while( r.x_ != 0 && r.y_ != 0 )
{
++n;
r += *this;
if ( n > maxPeriod ) break;
}
return n;
}
please help me soon....
© Stack Overflow or respective owner