2.char轉int 在char類型字符相減時,結果會自動轉爲int型: char a = '1'; cout << typeid(a - '0'). ... c++中int與char,string的相互轉換.
確定! 回上一頁