I've been doing some programming for fun outside of class and a popular practice program to write is to make a palindrome checking program.
I'm very close, I think, to completing it, but there is a bug which I cannot work out.
The bug is that if you enter a word that is a palindrome, each word after that will also be marked as a palindrome. However, prior to entering a palindrome, the program will correctly identify non-palindromes.
I'm thinking it's an issue with my usage of getline() or cin.ignore(). I don't quite gasp how to use these or what exactly they do (besides getline taking user input, obviously).