after getting the line use this code (i think) to ........ errrrrr...... im kind of a beginner too..... but something about clearing input buffers (i think)

Code:
cin.ignore(80, '\n');
if im wrong about the buffer thing someone who knows tell me please