C/C++ string "="

 

    std::string strings("fjsdlkfjlsdkjfl");
    strings += '\0';
    strings += "fdsfjdsljfl";

 

int len = 0;

std::string tmp = strings;

len = tmp.size();

//此时len != strings.size();

posted @ 2020-02-17 20:57  YZFHKMS-X  阅读(116)  评论(0编辑  收藏  举报