View Single Post
Old 05-17-2004, 04:14 PM   #76 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Read the first post in this link wich someone recently posted:
http://codenewbie.com/forum/t1931.html
Now, the code you are asking about, is another way to prevent skipping user input. It clears the stream, so you code won't skip user input if the stream is "polluted".

If you also read my reply, you will encounter another and more correct way to deal with it. THAT is the code wich I implemented in the update below:
http://home.tiscali.nl/~valmont/cpp/...ckvc6final.zip
Besides that update (fix), there is another fix for the dealer's decision algorithm.
__________________

Last edited by Valmont; 05-17-2004 at 05:26 PM.
Valmont is offline   Reply With Quote