cin.ignore(); ignores return characters, or an amount of characters that you specify.
You can read more about that here:
http://www.cplusplus.com/reference/istream/istream/ignore/
http://www.cplusplus.com/forum/beginner/9148/
http://stackoverflow.com/questions/25475384/when-and-why-do-i-need-to-use-cin-ignore-in-c