You need to view the video's recommended above, and any other C tutorials you can find on the internet. (There are several excellent ones).

Then come back when you have a question or problem with a particular bit of code. There's simply no way to start posting up an off-the-cuff C tutorial, on a forum, and address all the needs you have.

Good luck, and study hard!