reinterpret_cast(str) std::string password( reinterpret_cast(write_password), l); 转载于:https://www.cnblogs.com/nowheretrix/p/10583290.html