看板Programming
標 題Re: c語言的問題
發信站交大資訊次世代BS2 (Thu May 17 21:23:45 2007)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!news.cis.nctu!BS2
※ 引述《[email protected] (Alien)》之銘言:
> 只是印可能可以更簡單
> unsinged int n = 98765;
> for (i = 0; i < sizeof(unsigned int) * 8; ++i) {
> printf("%d", (n >> i) & 1);
> }
> 這該就夠了吧?
> alien
不錯,我直覺上老是認為要觀察馬,只有把遮片上的狹縫從左邊推到右邊,
其實只要把馬從右邊趕到左邊就可以了。
--
美國戰後戰鬥機發展時程,F-80 - XF-108 : http://blog.bs2.to/post/GOLDMEMBER/8981
The UNIVAC Biblestory : http://blog.bs2.to/post/GOLDMEMBER/9041
The James Bond Superweaponry : http://blog.bs2.to/post/GOLDMEMBER/9002
今日的一言(2/10): 登月演說, 1962 : http://blog.bs2.to/post/GOLDMEMBER/7840
http://blog.bs2.to/GOLDMEMBER 法外科學暨工程顧問公司
--
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw>
█▄▄▄▄█ █ ▄▄▄▄▄█ Player: GOLDMEMBER
▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: 59-115-201-235.dynamic.hine
☆ 次世代BS2 ☆ 可申請個人板
150MB 相簿 http://pic.bs2.to 交大資訊人 250MB