Reading###Reading a file:
Why###Why are you doing this:
You###You seem to reversing the line just to print it:
for(std::vector<std::string>::const_iterator& loop = sVec.rbegin(); loop != sVec.rend(); ++ loop)
{
cout << (*loop) << " is a Palindrome " <<endl;
}
###Note on efficiency:
Using push_back() on an vector can be in-effecient if you are pushing a lot of data. As evertime the vector runs out of space it must allocate more memory and copy the string to the new buffer. You help by pre-allocting space.
sVec.reserve(1000); // Guess at the size
// Note when the vector runs out of space it will approximately
// double its internal buffer.