Cin.get() function

i didn’t understand that what this cin.get() is doing here .

There are two ways to input a string - cin.get(s) and cin.getline(s)
cin.getline() is used to input white spaces as well.
For example, if the input string is “Hello World”.
If we used cin.get(s), cout<<s will display “Hello”.
If we used cin.getline(s), cout<<s will display “Hello World”.