I want to take input from the user as multiple lines. But when a run the program and write "Hello, my name us umer" here when i enter to write new line. The program runs. I want to write new line. This is my code to read inpput.
string text;
cout<<"Enter the text"<<endl;
getline(cin,text);
How i can input muliple line in C++?