const char* string::c_str () const
Returns the contents of the string as a C-string (an array of characters that has the null character '\0' appended).
The return value is owned by the string. Thus, the caller must neither modify nor free or delete the return value.
The return value is valid only as long as the string exists, and as long as only constant functions are called for it
阅读(1746) | 评论(0) | 转发(0) |