4 Answers
New AnswerWith getline you can get full line. With cin you can get text to enter or space, but getline allows you to get full line. getline(cin, variable);
look up. You have variable "text123" and there you want to place line of input text, so: getline(cin, text123);
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message