標籤:. 1, string轉const char* 型別. string str = "abcdef";. const char* con_str = string.c_str(). 2, const char*轉string 型別. 直接賦值.
確定! 回上一頁