string 字符串转为 char *

std::string str = "abc";
const char *p = str.data();

  

更多: https://www.cnblogs.com/devilmaycry812839668/p/6353807.html

posted @ 2020-03-23 17:02  strive-sun  阅读(474)  评论(0编辑  收藏  举报