MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.

Closed Thread
Thread Tools Display Modes
Old 01-25-07, 14:59
ShockTroop's Avatar
ShockTroop ShockTroop is offline
Join Date: Mar 2006
Location: eastern New Hampshire
Posts: 373
Thanks: 0
Thanked 0 Times in 0 Posts
Default C++ equivalent to fflush(stdin)

I've been trying to find a C++ equivalent to C's fflush(stdin), but none seem to work. cin.ignore(), cin.ignore(x), cin.ignore (x,'\n'), and cin.clear() don't work for a simple cin>>x when I input characters. It's not the attempt to convert chars to an int because I've tested and error handled that portion. I think for some reason there's still a '\n' or something floating around in the buffer that I can't seem to get rid of.
I'd prefer not to use C for the sake of consistency, but if there's no equivalent I guess I have no choice.
Any ideas?
Sponsored links
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert .ape files to WMA or equivalent. augiedoggie Software 3 08-03-06 18:08
linux equivalent to sygate? Tonglebeak Software 3 04-18-06 19:51
What is the AMD equivalent Quagmire02 Hardware 11 04-14-05 13:29
Free equivalent of Partition Magic mcadam Software 0 04-06-05 11:08

All times are GMT -5. The time now is 11:09.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds

All content Copyright source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger