Some tasks are so common that C++ provides special syntax just to represent them with fewer keystrokes: for example, the increment operator (++). Because adding 1 is so common, C++ provides this operator even though you could get away without it.
n++; // Add 1 to n.
Another case is the for statement. Its only purpose in life is to make certain kinds of while loops more concise. But this turns out to be so useful that programmers come to rely on it heavily. I use it throughout the rest of this book.
You’ll find that once you use it a few times, the for statement will become second nature. But it looks strange the first time you see it.
As you worked with while loops in Chapter ...