bitset string s("00001111"); const int n = 16; unsigned long a = 2; bitset<n> ibit(s); bitset<n> ibit1(a); cout<<ibit<<endl<<ibit1<<endl;