c ++ – Can an entry be read as a line break?

Alright, I'm studying C ++ and I'm taking part in a file management exercise. This exercise indicates that I have to make sure that the program receives user characters in the form of character strings forming paragraphs, and then write this paragraph into a file the same program will create.

The problem I have is that I do not know how to make it read "Enter" in line breaks, for example:

"Hello how are you?

Good and you?"

Instead of appearing this way, they appear like this:

"Hello, how are you and you?"

So, is there a way for the entry to be interpreted as a line break from the console? Thus, in this way, when transferring to the file, the text can be seen in other lines instead of being pasted.

Thank you so much.