If I use cin and cout for text I/O, it appears that sometimes
if you have two cin commands after each other it appears that
the input buffer isn't empty and the second cin command is ignored
(because of a "leftover" carriage return or something in the buffer)
I know that cin.get(); can fix some of these problems but if there
is nothing in the buffer then it waits for a carriage return.
So basically the thing I need is something that checks the buffer,
deletes the things in it if anything and then just lets the program
proceed that nothing has happened...