Clarification of code

Here, cin.get() was again defined in the loop. Why? Because the whole sentence as input was given in the starting only.

I am not able to understand what you are saying. I am not able to access the video which you are talking about. Describe your doubt clearly. and getline() is used where we have to get the whole line as input.

closing this for now. open this if you still need an answer

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.