Pelles C forum

Pelles C => General discussions => Topic started by: Emmz on September 14, 2004, 08:23:21 PM

Title: Begginer's tutorial
Post by: Emmz on September 14, 2004, 08:23:21 PM
I'm new to Pelles C and have no experience in any other language  :oops:  If anyone knows of a online tutorial or guide to help me get used to working with Pelles C please post a link to it. Also seen as i'm new if anyone thinks that there is a better program for learning how to use C/C++ or any other language please say so. Thanks in advance   :wink:
Title: Begginer's tutorial
Post by: CLR on September 14, 2004, 09:42:27 PM
Hi.

As a beginner myself, I would like to recommend Eddie's Guide to C Programming. (http://www.iota-six.co.uk/c/default.asp).

Good luck.
Title: beginners tutorial
Post by: ROM on September 16, 2004, 10:17:04 PM
There is "a lot" of tutorials for C. Problem is that they are'nt ANSI/ISO(C99) compliant. So, even the simplest of examples will probably not compiles in PellesC, unfortunately. They'ew mostly the old ANSI C standard, circa 1989, 1990.

I found it difficult when doing a search to find any C99 C tutorials. But, here are 2:

http://members.shaw.ca/ipatters/
http://www.trunix.org/programlama/c/kandr2/

The following link describes differences between ISO 98 C++ AND ISO C99 C.

http://david.tribble.com/text/cdiffs.htm

Once a little about the differences between the old C and the newer C99 standard are known, any of the very many old ANSI C tutorials on the WEB can be converted to ISO/ANSI(C99) C.

Hope that helps

ROM
Title: Begginer's tutorial
Post by: Pelle on September 17, 2004, 07:40:19 AM
C99 mostly add things, so ANSI C should work OK. Pelles C/LCC have a stricter type checking than some C compilers, so you might get some warnings, but most code should compile.

Since not many compilers support C99 yet, looking at ANSI C might not be all that bad...

Pelle
Title: begginer's tutorial
Post by: ROM on September 17, 2004, 06:25:27 PM
<Since not many compilers support C99 yet, looking at ANSI C might not be all that bad... >

For the simpler C examples out on the web, only a few modifications need to be taken into account to get them to compile on PellesC. For example, but not limited to:

a)prototype all user defined functions which will be called in the app., after the includes and before main
b)main()  change to  int main(void)
c) return 0 or something else before the closing brace of main

Well, I'm just a beginner myself.

ROM