std::string

Applies to: cpp

std::string is C++'s standard owning string type, safer and more convenient than raw character arrays.

std::string name = "robot";
name += "1";

See also: data-type, std-vector