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