I am writing a program that prints out user entered string and lenght.
I was able to get this part
using namespace std;
string x ;
getline (cin, x) ;
cout << "You entered: " << x << "String lenght/size is: "<< <<endl;
There's a function that belongs to the string object, in your case
x.length() will return the length of the string.