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