C++ 2022/07/17

strlen()不会读取字符串末尾的'\0',因此在通过strlen()来实现字符串的转换时,别忘记加上末尾的'\0'。

posted @ 2022-07-17 23:41  nnmmss  阅读(22)  评论(0)    收藏  举报