In this question that I posted, I received an answer that uses the bit shifting operators <<
and >>
. Can someone explain to me how this works? It appears to be translating, as if piping the value from one thing into the other all on one line in a series of left bit shift or right bit shift.
Please realize that I'm new to C++. I haven't studied it in 20 years, and I'm learning it again.