home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!newcastle.ac.uk!tuda!n1yrc
- From: Raj.Subramani@newcastle.ac.uk (D. Subramani)
- Newsgroups: comp.lang.c
- Subject: Re: Moving from Pascal to C, Help please!!!!!!
- Message-ID: <C04E63.863@newcastle.ac.uk>
- Date: 31 Dec 92 10:51:39 GMT
- References: <78858@hydra.gatech.EDU>
- Organization: University of Newcastle upon Tyne, UK, NE1 7RU
- Lines: 26
- Nntp-Posting-Host: tuda
-
- gt6758b@prism.gatech.EDU (Michael Maverick Kopack) writes:
-
- [stuff deleted]
-
-
- >There are a lot of things about C that I find very frustrating after comming
- >from a decent course in Pascal. For one is the way that Arrays are handled.
- >I like being able to do stuff like array [6..26] of int whereas in C you
- >get forced into calling the indeces 0-19. I also HATE that there are no true
- >pass by reference parameters!
-
- [stuff deleted]
-
- 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).
-
- Its best to stop thinking as you did in Pascal/Fortran, to a certain
- extent, when using C (easier said than done).
-
- Have a error free New Year.
-
- raj.subramani@newcastle.ac.uk
-