How can I learn C and make it applicable?

Going back to basics and looking for interesting exercises

Page 1 of 1

4 Replies - 1832 Views - Last Post: 21 April 2010 - 10:01 AM

#1 spadict   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 25
  • Joined: 24-August 09

How can I learn C and make it applicable?

Posted 21 April 2010 - 07:24 AM

I've been programming for a little while in php and objective C and had previously only taken some basic courses on programming in school. I can certainly see the merit in taking some time to step back and work with something very low level and make sure I haven't missed anything important, however, I'm a bit weary of doing boring exercises starting from 'Hello World' up, can anyone suggest some good exercises or resources for learning beginner/intermediate C that is actually somewhat exciting and applicable to today?

Is This A Good Question/Topic? 0
  • +

Replies To: How can I learn C and make it applicable?

#2 athlon32   User is offline

  • D.I.C Regular
  • member icon

Reputation: 117
  • View blog
  • Posts: 363
  • Joined: 20-August 08

Re: How can I learn C and make it applicable?

Posted 21 April 2010 - 07:37 AM

Well, since you have some background in other languages, then this book probably won't be difficult for you to use:
http://www.amazon.co...71860515&sr=8-4

As for making C 'fun', well i guess it's as fun as you make it. When ever i mess around with a new language, i generally look through the boring 'excersises', and then just write something simple (snippet), to test and practice what I've learned. This is how i have when learning new things :P

Hope i helped :D
Was This Post Helpful? 1
  • +
  • -

#3 janotte   User is offline

  • code > sword
  • member icon

Reputation: 991
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: How can I learn C and make it applicable?

Posted 21 April 2010 - 07:38 AM

How about building yourself a game
http://www.tutoriali...Entertainment/1
Was This Post Helpful? 1
  • +
  • -

#4 Guest_taylorc8*


Reputation:

Re: How can I learn C and make it applicable?

Posted 21 April 2010 - 07:54 AM

File IO isn't fun?

ifstream
ofstream


read the comment section of a jpeg, and write to it etc. etc.
split a file into pieces, re-assemble it

also, there are a number of libraries available that usually have fun stuff.

Boost - everything standard lib. under the sun
QT (pronounced "cute") - GUI (very, very simple..)
libcurl - haven't tried it
Crypto++ - a little more difficult to use, it's for encryption
Was This Post Helpful? 1

#5 spadict   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 25
  • Joined: 24-August 09

Re: How can I learn C and make it applicable?

Posted 21 April 2010 - 10:01 AM

Already found some great tutorials from some of these ideas. Thanks very much for all the suggestions
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1