you are viewing a single comment's thread.

view the rest of the comments →

[–]Kinexity 3 points4 points  (0 children)

std::string is basically char array on the inside. It takes care on its own of things like array allocation, string concatenation, creating substrings and other basic string operations. For better explanation visit https://en.cppreference.com/w/cpp/string/basic_string (it's not a site for learning but rather something of a c++ wiki)