📜  将 long int 转换为二进制字符串 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:52.873000             🧑  作者: Mango

代码示例2
auto int_bits_size = 32; // maximum number of bits for the integer
auto some_integer = 123456789;
std::string str = std::bitset(some_integer).to_string();