很多時候我們得在C++ 使用C 語言寫的函式庫, 這時候std::string 有幾種不同的方法來轉為char*:. 最安全也最常見的用法,是呼叫std::string.c_str() ...
確定! 回上一頁