std::string length() and size() member functions

前端 未结 4 659
你的背包
你的背包 2020-11-29 15:43

I was reading the answers for this question and found that there is actually a method called length() for std::string (I always used size()

4条回答
  •  粉色の甜心
    2020-11-29 16:11

    length of string ==how many bits that string having, size==size of those bits, In strings both are same if the editor allocates size of character is 1 byte

提交回复
热议问题