strring length in c++ code example Example: strring length in c++ #include<string.h> string s; cin>>s; int len; len=s.length();