Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 answers
573 users
#include <bits/stdc++.h> using namespace std; int main() { bitset<6> bs(string("100010")); bs.set(2); cout << bs << endl; bs.set(4); cout << bs << endl; return 0; } /* run: 100110 110110 */