Usually this happens because there's already a \n in the stream from a previous cin >>.