Chapter 34

Ten Features Not Covered in This Book

In This Chapter

arrow Binary logic

arrow Pure virtual functions

arrow The string class

arrow Templates and the Standard Template Library

The C++ language contains so many features that covering every one in a single book — especially a book intended for beginning programmers — is impossible. Fortunately, you don’t need to master all the features of the language in order to write big, real-world programs.

Nevertheless, you may want to look ahead at some of the features that didn’t make the cut for this beginner’s book, just in case you see them in other people’s programs.

The goto Command

This command goes all the way back to C, the progenitor of C++. In principle, using this command is easy. You can place goto label; anywhere you want. When C++ comes across this command, control passes immediately to the label, as demonstrated in this code snippet:

    for(;;)  {      if (conditional expression)      {          goto outahere;      }      // ...whatever you want...  }outahere:  // ...program continues here...

In practice, however, goto introduces a lot of ...

Get Beginning Programming with C++ For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.