12-09-2012, 03:08 PM
When you use getline you are doing what it says exactly. You will get all the data in the line. If you just use cin then you will only get the characters until the first space after the first character which isn't a space. I hope that is clear.