You should read some introductory article on c++ streams, such as this one: http://www.cprogramming.com/tutorial/c++-iostreams.html
I haven't personally read that specific article, but it seems OK.

std::cin is basically just a very special stream, an instance of std::istream. You can see exactly what the get and ignore methods does on that page.