Hard Light Productions Forums

Off-Topic Discussion => Programming => Topic started by: Tyrian on July 16, 2008, 07:17:05 pm

Title: C Tutorials
Post by: Tyrian on July 16, 2008, 07:17:05 pm
I took a class on C in my high school a couple years ago, and I'm itching to get back into it.  We went as far as functions.  I'm wondering if there are any tutorials that anyone would recommend that I could use to brush up on my skills and expand (quite) a bit.  I'm also going to be taking a C programming class for engineers when I go back to university.  Any pointers?
Title: Re: C Tutorials
Post by: portej05 on July 17, 2008, 02:04:41 am
Brush up on them!  :lol:

From what I can remember, the trouble most people had in the Computer Architecture labs with C were pointers, arrays, memory allocation and casting (C will let you do whatever, but it might not work!)

Best way to brush up is to actually do some coding - grab gcc or some other C compiler (you can also set VC++ to only compile C code) and write a bunch of programs. Good places to start include Game of Life, Prime Numbers, String Encryption/Decryption
Another exercise we got students to do was to write a very simple processor simulator in C (and a basic assembler as well) - its not as hard as it sounds, and you can make it as complex as you want.

Enjoy!
Title: Re: C Tutorials
Post by: Wanderer on July 17, 2008, 02:58:37 am
Depending what you want to read/do...

http://publications.gbdirect.co.uk/c_book/
http://www.cprogramming.com/tutorial.html
Title: Re: C Tutorials
Post by: WMCoolmon on July 31, 2008, 03:32:43 am
http://www.hard-light.net/wiki/index.php/Coding_In_C