For starters convert pictures into pseudocode, then code it in C.

In that case pickup a good book on C and read it cover-to-cover.
There are plenty of good books suggested in the sticky on this...