943,847 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2092
  • C RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Dec 18th, 2007
1

Re: query regarding swtich case

>I don't agree with U.
You can disagree all you want, but you're still wrong.

>u can search "fflush" in MSDN!
MSDN doesn't define the standard library, the C standard does. And the C standard says that calling fflush on an input stream is undefined. If your compiler happens to support an extension that allows fflush(stdin) , feel free to use it. But until this forum is renamed to "C for Beair.GQ's compiler", you'll be promptly corrected if you try to encourage undefined behavior with constructs like that.

>and it's give the example like this:
MSDN's examples are well known to be examples of what not to do. The code you posted is broken in four places, has three instances of non-portable constructs, and three instances of non-portable usage. Using MSDN to back up your claims is a folly.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Dec 18th, 2007
1

Re: query regarding swtich case

hoho,I am sorry for my naive.
i am chinese,what i want is learning english,and make friends with whom i want.
Reputation Points: 40
Solved Threads: 2
Newbie Poster
Beair.GQ is offline Offline
9 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: qsort
Next Thread in C Forum Timeline: Storage Class in C - Question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC