>because most of the programme i got from c books could'nt run because of too many errors...
Fixing such errors is far more conductive to learning than just staring at a working program (when you are first learning that is). Later on you will find that reading the source code of a more experienced programmer is an enlightening experience. Try to fix the errors on your own and if they turn out to be too much for you ask us and we will give detailed explanations as to how they can be fixed and what caused them.

-Prelude