How should I get the number of characters in a string in C++?
std::string str("a string"); std::cout << str.size() << std::endl;