19,469
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include <iostream>
#include <bitset>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int a = 4;
bitset<32> b(a);
int i = atoi(b.to_string().c_str());
cout<<i<<endl;
return 0;
}