This is all worng.
It has taken me 1 year to learn C. I did this by reading a c++ book,
then reading a generally available c book, then trying to program and
making so many mistakes it is unbelievable (well actually to the c
guru's out there - Heathfield and Thompson - this probably is
believable), and then when I thought I knew c I bought a copy of K & R.
Only after reading that do I now feal comfortable with c.
Absoultely not. There is no reason to learn C++ before C, it will just
confuse the hell out of you. Don't do any of this. The best place to
start isn't even IN a book, its in a simple tutorial. K & R is far to
hard for a beginner to read, but some other books are okay. There are
pleanty of other ways to get confortable with C. Just google C
tutorials. What skill level are you? What do you know now? What do
you want to learn?
I think unless you are a robot the only way you are gonna learn is by
reading, making mistakes and learning by them.
This is also wrong. You can't exactly make mistakes reading and if you
do you have much bigger problems. In C mistakes are not learned from
so much as made into habits (if they don't generate errors). My
biggest tip if you have a warning FIX IT.
Actually, robots don't learn anything, they just do what they are
programmed to and pick up information if that is what they're
instructions told them to. What are you trying to say.
Any the only way to learn C is to use it! You can't just read and
learn. Copy the source in the tutorial or book. Not copy and paist,
manually type it up as a copy, that really helps, then use what you
learned to make programs.
All reading and no compiling will make gcc a dull boy.
(assuming you use gcc which imho you should however this is off topic
for this group.
Sorry if this is not much help.
Its not, if you want to LEARN C and not just be farmilliar with it.
P.S. If your gonna learn c you must buy a copy of K & R. I think the
fact that I had already read other programming books before reading it
definately helped me because they do assume that you are familiar with
a programming concept.
This is not true at all. In order to learn C you do not have to buy
any books at all, it helps by is not required. All sorts of info is
free in the maigcal world were EVERYTHING is, called the internet.
Hope this helps erase what he just told you.
Nori
P.S. You did not learn C in a year, it is not possible to learn the
whole language, and it is less possible to do it in a year. I have
been LEARNING C for the past 4 years and I still have barely touched
the tip of the iceberg. A good understanding, a great understanding
even, is very differnt than KNOWING the whole thing.
N