What is the getline statement? | Sololearn: Learn to code for FREE!


What is the getline statement?


7/28/2016 2:45:39 PM


4 Answers

New Answer


With 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);


What is its syntax ? Can u give some example ?


look up. You have variable "text123" and there you want to place line of input text, so: getline(cin, text123);