#include <iostream>
#include <bitset>
#include <string>
using std::cout;
using std::endl;
int main()
{
std::bitset<16> bo(std::string("1011"));
cout << bo << endl;
if (bo.test(0) == 1)
cout << "bit 0 is set" << endl;
return 0;
}
/*
run:
0000000000001011
bit 0 is set
*/