int main() { int i=3; (i << 1); cout << i; //Prints 3 }
由于左移一位,我预计会得到6分.为什么不起作用?
c++ bitwise-operators
bitwise-operators ×1
c++ ×1