What is the function of "cin.get()" and "cin.ignore()".

Why not look them up?
istream::get
istream::ignore

Basically, they're both input statements, but get() lets you keep the characters extracted from the stream and ignore() doesn't.