How do you rotate bits in C++?

I think i know a bitshift ( >> ) right? But that clips off the edges dont it?

Any help would be appreciated! Thanks!

Printable View

- 06-10-2007Junior89Bit rotation...
How do you rotate bits in C++?

I think i know a bitshift ( >> ) right? But that clips off the edges dont it?

Any help would be appreciated! Thanks! - 06-10-2007Salem
Catch the bits which would fall off the end, then add them back in yourself.

- 06-10-2007-JM
They have to be rotated every 5,000 miles or they will wear prematurely. Also be sure to keep your bits properly inflated for better fuel efficiency.

- 06-10-2007brewbuck
- 06-10-2007CodeMonkey