string有个成员函数,assign()
可以这样:
string str; str.assign(temp, sizeof(temp));
贡献者
分享
程序员康朋
这家伙很懒,只想把你留下。
该资源仅限VIP专享下载