I was working on a program where I take input from the user in the form of string and then find its length using following syntax.
getline(cin,password); len