黑白程式

黑白程式

导航

2011年3月2日

c code

摘要: 1#include<stdio.h>2typedefunsignedchar*byte_pointer;34voidshow_bytes(byte_pointerstart,intlen)5{6inti;7for(i=0;i<len;i++)8printf("%.2x",start[i]);9printf("\n");10}1112voidshow_int(intx)13{14show_bytes((byte_pointer)&x,sizeof(int));15}1617voidshow_float(floatx)18{19sh 阅读全文

posted @ 2011-03-02 17:25 黑白程式 阅读(243) 评论(0) 推荐(0) 编辑