Quote:
Originally posted by cyberCLoWn
I'm reading the book by Herbert Schildt called C++ From The Ground Up (3rd Ed). The thing that I dislike about this book, and it's something that stands out, is the fact that in almost every example he uses a For loop. I'm now trying to understand Arrays and Pointers (bloody hard pointers are) and there are For loops scattered all over the place. Are For loops really that useful? Sure, I understand it depends on the situation. I mean when I do things I stay away from For loops and just put a i++ or something at the end of a while or do while loop.
Maybe it's just my dislike of For loops or ability to find easier to understand ways of doing Herbet's examples but I'd like to hear what actual coders think about this loop.
It's perfectly normal to find for loops widely used, there's nothing unusual about the fact that Schildt appears to use them a lot in the book you mention; they are indeed very useful. Why is it that you don't like them? Either way, I wouldn't worry, in time you'll probably find that you use them often yourself without even thinking about it.