討論串[問題] bitset的使用方式
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
const char *s = "00_00_1"; // 多謝版友提醒. unsigned int res = 0;. while(char t = *s++). {. // char 00110000 : '0', 00110001 : '1'. if(t == '0' || t == '1')
(還有173個字)
內容預覽:
開發平台(Platform): DEV C++. 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...). 有用到bitset. 問題(Question):. 有點崩潰... 由於需要將2進位字串換直接轉成10進位的整數. 所以最後選擇用bitset. 參考了文章#1B
(還有746個字)
首頁
上一頁
1
下一頁
尾頁