為了獲得 const char* 訪問 std::string 的資料,你可以使用字串的 c_str() 成員函式。請記住,只要 std::string 物件在範圍內並保持不變,指標才 ...
確定! 回上一頁