c++ string to int (hex) ... int main() { int a; stringstream ss; string str = "FF"; ss << hex << str; ss >> a; ... 然後用atoi() 轉換就可以了
確定! 回上一頁