会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
nXqaL's Blog
Pains make you stronger, tears make you braver, and heartbreaks make you wiser. So thank the past for a better future.
博客园
首页
新随笔
联系
订阅
管理
2013年6月29日
转换2进制代码
摘要: void FormatBinary(__int64 num,char buf[]){ int nCount = 0 ; while ( 1 ) { if( ( (__int64) 1 num) break ; if( ( num >> nCount ) & 1 == 1) { buf[nCount] = '1'; }else { buf[nCount] = '0' ; } nCount++; } fo...
阅读全文
posted @ 2013-06-29 20:16 nXqaL
阅读(318)
评论(0)
推荐(0)
编辑
公告