Dec 8, 2012 at 5:07pm UTC
Hey guys, it is my first post in here, I am starting my journey with c++ and have encountered some if statement that I do not understand, the thing is '>>=',
I know it works with bytes of number and I know what does >> mean but what >>= mean?
Dec 8, 2012 at 5:12pm UTC
Do you mean >= ?
is a larger or equal then/to b?
if its true then do the statement
Dec 8, 2012 at 5:16pm UTC
x>>=y is equivalent to x=x>>y.
Dec 8, 2012 at 5:18pm UTC
No, no I mean >>= the if looks like if ( b >>= 1 )
Last edited on
Dec 8, 2012 at 5:29pm UTC
Dec 8, 2012 at 5:44pm UTC
>> is the bitwise shift operator along with <<. They are also overloaded for stream objects for input and output operators. I've never seen it used like you are indicatiing ohc.
Topic archived. No new replies allowed.
General C++ Programming
© cplusplus.com, 2000-2014 - All rights reserved -
Spotted an error? contact us