+ 1
Why string reads space ib getline(cin,variable) syntax than only inputting variable
2 Respostas
0
can you be more specific with your question? I'll try to answer...
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