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

+2

What is the getline statement?

c++

7/28/2016 2:45:39 PM

Programmer

4 Answers

New Answer

+2

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

+1

What is its syntax ? Can u give some example ?

+1

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

-1