Feb 23, 2014 at 10:53am
Why do we use getline to in any palindrome program?
Feb 23, 2014 at 10:59am
getline reads the whole line. operator>> only reads one word.
Feb 23, 2014 at 2:54pm
Getline reads all the way until a new line is formed. >> only reads until a space.
Feb 23, 2014 at 4:56pm
It's also far less error prone and can be manipulated far easier. Although with the advent of C++11 that's less of a problem.
But the primary reason is to deal with phrases.