C++ 获取Value的第N位 Posted on 2019/08/26 by LT Reply public static bool getBit(int value, int bit) { return ((value >> bit-1)&1)==1; }