Getline vs cin and strings header file

can you please share with me the difference between getline and cin and also please tell me what is the header file for string algorithms like strlen and strcmp.

getline is used to read sentences having spaces but cin can only read a word.
strlen and strcmp come under cstring headre file.

Please tell me what is the difference between and because I have seen people use in many programmes.

@jayasmit98
See If you have to input a sentences which contain space the you should use getline() and for single word can be use either of getline or cin.
For Example: If you have to input this string: “Ram went to school”, then you should use getline since this string has spaces in between. If you use cin here final string contain just “Ram”.
check this link https://pediaa.com/what-is-the-difference-between-getline-and-cin/