#include <iostream>
#include <Windows.h>
using namespace std;
void OutputBin(int n)
{
for(int i=0;i<8;i++)
{
cout<< ((n & 0x80) == 0 ? 0 : 1) << " ";
n = n << 1;
}
cout<<endl;
}
void InputStr(char *p = NULL)
{
for(;'/0' != *p;p++)
{
cout<<*p<<": ";
OutputBin(*p);
}
}
void main(int argc,TCHAR*argv[])
{
InputStr("Chao Yue Ping Fan");
}