std::string 為此有一個構造函數: const char *s = 'Hello, World!'; std::string str(s);. 請注意,此構造將字符列表深複製到 s 和 s 不該是 nullptr ,否則行為是不 ...
確定! 回上一頁