include <bitset>

打印二进制:
    uint8_t aa = 129;
    std::bitset<32> binary(aa);
    std::cout << binary << std::endl;