输出10进制数的二进制表示

#include<bitset>

int a = 888;
cout << bitset<sizeof(int)*8>(a) << endl;

猜你喜欢

转载自www.cnblogs.com/friedCoder/p/12245147.html