C++ char数组转string_C++ C风格字符串与string对象转换陷阱 程序猿 • 2025年12月19日 10:40:46 • 好文分享 • 阅读 0 答案是char数组转std::string需注意空终止和中间’