驗證網址www.learncpp.com安全性

17.3 — std::string length and capacity « Learn C++

Note that the capacity is higher than the length of the string! Although our string was length 8, the string actually allocated enough memory for 15 characters! Why was this done? The important thing to recognize here is that if a user wants to put more c...

網址安全性掃描由 google 提供