Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 answers
573 users
#include <bits/stdc++.h> using namespace std; int main() { bitset<32> bs(string("100000110011010110111001")); unsigned long l = bs.to_ulong(); cout << l << endl; return 0; } /* run: 8598969 */