+ 2

What is the getline statement?

28th Jul 2016, 2:45 PM
Programmer
4 ответов
+ 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);
28th Jul 2016, 4:26 PM
Damian Sośnicki
Damian Sośnicki - avatar
+ 1
What is its syntax ? Can u give some example ?
29th Jul 2016, 4:43 PM
Programmer
+ 1
look up. You have variable "text123" and there you want to place line of input text, so: getline(cin, text123);
29th Jul 2016, 5:35 PM
Damian Sośnicki
Damian Sośnicki - avatar
- 1
?
10th Aug 2016, 3:01 AM
kaikaix
kaikaix - avatar