There is a ifstream::ignore() function ... you can use this to ignore the enter mt


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

Posted by DarkTerritory on July 22, 1999 at 16:34:55:

In Reply to: Clearing an Input Stream 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 ]