x <<= 3;
hehee, my CS teacher wanted to know why I was tring to stream 3 into an integer, and he was surprised that the code even compiled and worked.
heh.
Anyway, most C++ people want to totally erradicate bit shifting, because it isn''t "object oriented". In C++, << and >> are streaming operators.
aka
cout << x;
that means that you are streaming x into cout. It does make sense if you look at it.
I personally don''t like streaming (I have never used cin and cout in actual code that I program with, only in CS projects.), but you have to admit, its 1000x better than doing it C-style, where you have to tell printf() what type it is, rather than cout, which already knows how to print it.
But seeing as how i rarely ever do console apps, i have no use for cin and cout.
===============================================
"Tell brave deeds of war."
Then they recounted tales, -- "There were stern stands And bitter runs for glory."
Ah, I think there were braver deeds.