std::string to char*

std::string ="fsaffaf";

 char *source=&buf[0];

原文地址:https://www.cnblogs.com/anjsxz/p/3731535.html