Results 1 to 3 of 3

Thread: Buffer clear

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Answers
    2

    Buffer clear

    im using a array with size 30.when i input chanarcters more than 30, error will occur.
    can any 1 plz tel me, how to clear the input buffer?


  2. #2
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Buffer clear

    hi friend..

    please use void fflushstdin()... as per view it will work

    Thanks
    Deepasree


  3. #3
    Expert Member
    Join Date
    Mar 2012
    Answers
    208

    Re: Buffer clear

    We can clear input buffer by using cin.flush() or cin.ignore(). cin.ignore() requires you to specify number of chars to ignore.


  4.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact