摘要: #include<iostream>using namespace std;int main(){ unsigned char ch='m'; unsigned char ch1=0x80; for(int i=0;i<8;++i) { if((ch&ch1)!=0)cout<<"1"; else cout<<"0"; ch1=ch1>>1; } cout<<endl; getchar(); return 0; }尤其要注意的是(ch&ch1)!=0这句,注 阅读全文
posted @ 2012-03-30 10:45 AndyDHG 阅读(177) 评论(0) 推荐(0) 编辑