📅  最后修改于: 2022-03-11 14:44:57.668000             🧑  作者: Mango
#include
...
char a = -58;
std::bitset<8> x(a);
std::cout << x << '\n';
short c = -315;
std::bitset<16> y(c);
std::cout << y << '\n';