Re: Seriously struggling with C
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Tue, 21 Feb 2006 18:13:03 -0500
"Richard G. Riley" wrote:
On 2006-02-21, CBFalconer <cbfalconer@xxxxxxxxx> wrote:.... snip ...
I wouldn't even consider anything other than the one liner:
while (EOF != (c = getchar())) putchar(c);
There is a very good reason why this should never be done.
Debuggers. It would be very hard to step into "putchar". Hence
the bog stand of
while((c=getchar())!=EOF)
putchar(c);
As someone who once had to spend an entire week breaking statement
lines down so that it would be "debugger friendly" I could never
recommend your solution.
Yet you are willing to eliminate the clarifying blanks in the
statement. At the same time I cannot remember when I last used a
debugger in anger. printf usually is adequate.
At any rate we all have our reasons for our preferances.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>
.
- Follow-Ups:
- Re: Seriously struggling with C
- From: Richard G. Riley
- Re: Seriously struggling with C
- References:
- Seriously struggling with C
- From: RG
- Re: Seriously struggling with C
- From: Rod Pemberton
- Re: Seriously struggling with C
- From: Keith Thompson
- Re: Seriously struggling with C
- From: Rod Pemberton
- Re: Seriously struggling with C
- From: Keith Thompson
- Re: Seriously struggling with C
- From: Ed Jensen
- Re: Seriously struggling with C
- From: pete
- Re: Seriously struggling with C
- From: CBFalconer
- Re: Seriously struggling with C
- From: Richard G. Riley
- Seriously struggling with C
- Prev by Date: Re: Expert.C.Programming.pdf
- Next by Date: Re: to calculate bitsize of a byte
- Previous by thread: Re: Seriously struggling with C
- Next by thread: Re: Seriously struggling with C
- Index(es):
Relevant Pages
|