get length of string c++ in string code example Example: is it len function is aviable for c+= str.length();