Re: prob w/the C prog. lang. book(ANSI C)
From: Dan Pop (Dan.Pop_at_cern.ch)
Date: 04/15/04
- Next message: Dan Pop: "Re: prob w/the C prog. lang. book(ANSI C)"
- Previous message: Ioannis Vranos: "Re: Is it standard and practical to use long long types?"
- In reply to: Martin Ambuhl: "Re: prob w/the C prog. lang. book(ANSI C)"
- Next in thread: JaSeong Ju: "Re: prob w/the C prog. lang. book(ANSI C)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Apr 2004 13:16:25 GMT
In <c5lilb$33ohb$1@ID-227552.news.uni-berlin.de> Martin Ambuhl <mambuhl@earthlink.net> writes:
>Peter Nilsson wrote:
>
>> So far, _you're_ the only one claiming there's anything wrong with the code!
>> ;)
>
>I never claimed the code was in any way not valid C, which seems to be
>your hangup. The original poster only told us it didn't work. It
>obviously does *not* work for the purpose of converting temperatures.
>Nor does it correspond, as he and one other person claimed, to the code
>in K&R. He failed to type the program in as it appears, and the result
>is that it doesn't work. Idiot.
I'm sorry, but the only idiot around is you. The code posted by the OP
is a verbatim copy of the program on page 9 in K&R2 (except that the
comments are stripped). If compiled and executed it produces the same
results as those listed on page 8 of K&R2. If you have *any* comments
about its correctness, please address them to Messrs Kernighan & Ritchie.
The K&R1 program you are talking about also exists in K&R2, at page 12,
as a refinement of the program at page 9, but this is, OBVIOUSLY, not the
program the OP was referring to.
The OP's problem is, most likely, that he doesn't know how to install or
how to use his compilers.
Dan
-- Dan Pop DESY Zeuthen, RZ group Email: Dan.Pop@ifh.de
- Next message: Dan Pop: "Re: prob w/the C prog. lang. book(ANSI C)"
- Previous message: Ioannis Vranos: "Re: Is it standard and practical to use long long types?"
- In reply to: Martin Ambuhl: "Re: prob w/the C prog. lang. book(ANSI C)"
- Next in thread: JaSeong Ju: "Re: prob w/the C prog. lang. book(ANSI C)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|