C++ string和C风格字符串

 

https://msdn.microsoft.com/en-us/library/syxtdd4f.aspx#basic_string__replace

 

If you need to convert a Standard C++ string to a null-terminated C-style string, use the basic_string::c_str member.

 

posted @ 2018-01-16 10:19  优秀afa  阅读(162)  评论(0编辑  收藏  举报