+ 1

Why string reads space ib getline(cin,variable) syntax than only inputting variable

11th Mar 2017, 8:41 AM
Usman Bhatti
Usman Bhatti - avatar
2 Answers
0
can you be more specific with your question? I'll try to answer...
22nd Mar 2017, 12:12 AM
SANJAY SIDDHARTH C V
SANJAY SIDDHARTH C V - avatar
0
the syntax of getline is as follows... getline(input stream,variable,délimiter) here the default delimiter is a new line '\n' so this code will read the spaces too
22nd Mar 2017, 12:14 AM
SANJAY SIDDHARTH C V
SANJAY SIDDHARTH C V - avatar