very simple

what is
n = (n<0) ? -n : n;
means?
It's the conditional operator
it means
1
2
3
4
if ( n < 0 )
    n = -n;
else
    n = n;


http://www.cplusplus.com/doc/tutorial/operators/
In mathematics, it means: n = |n|
Topic archived. No new replies allowed.