c++ - 结构 std::queue 丢失 const char* 数据
迷茫
迷茫 2017-04-17 13:46:11
0
1
711
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
阿神

This is std::string. After the function call is completed, tmpString is destructed and the allocated data will be deleted.
Since you want to use string, token_node should also use std::string, or it is best to use a heap-allocated char array directly.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template