Chapter 34
Ten Features Not Covered in This Book
In This Chapter
Binary logic
Pure virtual functions
The string class
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access