我只會char轉string轉int 不知道char能直接轉成int嗎? ... 你想'1' 轉成1, 還是想取其character 的值(在unicode 編碼的值)? 前者, 把c - '0' 就行了 ...
確定! 回上一頁