Dec 29

活在两个数字的世界里 不指定

felix021 @ 2008-12-29 10:59 [IT » 程序设计] 评论(1) , 引用(0) , 阅读(5349) | Via 本站原创 | |
#include<iostream>
using namespace std;

char l[] = "Felix021";

void print(char a){
    for(int i = 7; i >= 0; --i){
        cout << ((a >> i ) & 1);
    }
}

int main(){
    for(int i = 0; l[i]; ++i){
        print(l[i]);
    }
    cout << endl;
    return 0;
}




欢迎扫码关注:




转载请注明出自 ,如是转载文则注明原出处,谢谢:)
RSS订阅地址: https://www.felix021.com/blog/feed.php
slyar Email
2009-1-2 13:17
0100011001100101011011000110100101111000001100000011001000110001

飘过...
felix021 回复于 2009-1-2 14:14
grin
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   *非必须
网址   电邮   [注册]