#include <iostream>#include <bitset>using namespace std; int main() { bitset<8> bitset(12); cout << bitset; return 0;}
Standard input is empty
00001100
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!