I agree with andbin and Greg. Writing, compiling and testing lots of small programs is a good approach to learning programming.