Clearing an Input Stream


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]

Posted by VT Kingpin on July 21, 1999 at 22:31:53:

Ok...heres the deal...

How do you reset an input stream like cin? I am trying to read an int, but when I hit , the is being detected by getline, and I am getting an extra "window". Therefore, I need to clear the input stream before I execute a getline....any suggestions?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]