C++ 的string 函式庫中提供了c_str() 函數,只要在字串變數後面加上c_str() 便能將string 型態轉換成原生的char 型態,這樣一來也能夠使用stdlib.h 的字串轉int 函數, ...
確定! 回上一頁