C++ Language/Std/Strings/StringClass
Appearance
An object-oriented approach to storing string data is C++'s std::string
object, which can dynamically-grow because it implements many of the same functions as an STL vector.
Instead of using '\0'
to terminate string data, you can query its strVar.size()
function.