How should I get the number of characters in a string in C++?
if you're using std::string, there are two common methods for that:
std::string Str("Some String");
size_t Size = 0;
Size = Str.size();
Size = Str.length();
if you're using the C style string (using char * or const char *) then you can use:
const char *pStr = "Some String";
size_t Size = strlen(pStr);