c++ bitset 10进制转二进制 #include <bitset> using namespace std; void main() { int a; cin>>a; cout<<bitset<8>(a)<<endl; }