討論串[問題] 用 bitwise operator 把十進位轉成二進位
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者firejox (Tangent)時間14年前 (2011/03/13 15:06), 編輯資訊
0
0
0
內容預覽:
我想應該是這樣. for( i = 0; i < pow(2,n); i++ ). {. int temp=i;. for( j = length; j >= 0; j-- ). {. if( temp&1 ). binary[j] = '1';. else. binary[j] = '0';. t

推噓0(0推 0噓 17→)留言17則,0人參與, 最新作者nmns0110 (君詠)時間14年前 (2011/03/13 14:48), 編輯資訊
0
0
0
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). Dev-C++, Win7. 餵入的資料(Input):. 3. 預期的正確結果(Expected Output):. 000. 001. 010. 011. 100. 101. 110. 111. 錯誤結果(
(還有404個字)
首頁
上一頁
1
下一頁
尾頁