help on 'Segmentation Fault'

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2005
Posts: 9
Reputation: zeek is an unknown quantity at this point 
Solved Threads: 0
zeek zeek is offline Offline
Newbie Poster

Re: help on 'Segmentation Fault'

 
0
  #11
Jul 31st, 2005
thanks guys... you're really a great help
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 466
Reputation: winbatch is on a distinguished road 
Solved Threads: 18
winbatch's Avatar
winbatch winbatch is offline Offline
Posting Pro in Training

Re: help with getchar

 
0
  #12
Jul 31st, 2005
look into cin.clear()
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,789
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 746
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: help on 'Segmentation Fault'

 
0
  #13
Jul 31st, 2005
>look into cin.clear()
The question was concerning C, not C++. You also didn't mention why to use cin.clear(), which is a bad thing because you might trick someone into thinking that it discards characters when all it does is clears the error state for the stream.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC