home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!dkeisen
- From: dkeisen@leland.Stanford.EDU (Dave Eisen)
- Subject: Re: Moving from Pascal to C, Help please!!!!!!
- Message-ID: <1993Jan5.162504.1680@leland.Stanford.EDU>
- Sender: ?@leland.Stanford.EDU
- Organization: Sequoia Peripherals, Inc.
- References: <78858@hydra.gatech.EDU> <C04E63.863@newcastle.ac.uk>
- Date: Tue, 5 Jan 93 16:25:04 GMT
- Lines: 38
-
- In article <C04E63.863@newcastle.ac.uk> Raj.Subramani@newcastle.ac.uk (D. Subramani) writes:
- >
- >I would recommend that you have a look at "Numerical Recipies in C"
- >'cause there they explain how arrays of 2-D are pointers to a pointer
- >and so on which no one else does. Also they have a few routines that
- >allocate memory as per your requirement, ie. [6...26] etc. but be
- >warned, when you do that you will not be able to exploit the advantages
- >of pointer arethmatic fully (it will be too confusing).
-
- I've never read this book, but I sincerely hope that they do
- not explain that 2D arrays are pointers to pointers because
- they most certainly are not. This distinction is not fully
- understood by a large number of new C programmers and a question
- about it appears here every week or two. I would hate to think
- that popular books like "Numerical Recipes in C" are contributing
- to this misunderstanding.
-
- I can tolerate what they do with arrays ranging from 6 to 26 because
- while it is not legal C, it does work on every system I've ever
- heard about. Still, it would be nice if they had gotten this
- right too.
-
- I've heard very good things about this book, at least about the
- numerical methods it discusses. Still, if I had a need for
- numerical methods in my programs, I would buy the original
- Numerical Recipes (written in, I assume, FORTRAN) and do the
- conversion myself. I don't even know FORTRAN, but I would
- feel more comfortable trying to decipher the FORTRAN myself
- and converting it to C than I would trusting the author's
- knowledge of C.
-
-
-
- --
- Dave Eisen Sequoia Peripherals: (415) 967-5644
- dkeisen@leland.Stanford.EDU Home: (415) 321-5154
- There's something in my library to offend everybody.
- --- Washington Coalition Against Censorship
-