[問題] 如何換成十進位呢
CPP
請問輸入一二進位的數(ex:10010),要怎麼將他換成十進位?
(Use the modulus and division operators to pick off the binary number's
digits one at a time from right to the left)
因為才剛學cpp,所以能用簡單的方法最好
感激不盡
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.24.177.84
→
07/05 00:46, , 1F
07/05 00:46, 1F
推
07/05 02:13, , 2F
07/05 02:13, 2F
→
07/05 13:01, , 3F
07/05 13:01, 3F