📜  将十进制转换为二进制 c++ 代码示例

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

代码示例2
- Convert decimal to binary string using std::bitset
int n = 10000;
string s = bitset<32>(n).to_string(); // 32 is size of n (int)