-
Book Overview & Buying
-
Table Of Contents
The C++ Workshop
By :
Keywords are words that are reserved by C++. Thus, we cannot use them in our applications for anything other than their intended purposes. For example, a common keyword is if, so you would not be able to define a variable or function of that name. It's these keywords that structure the C++ language, and it's through their use that we instruct our program on what it should be doing.
There are many keywords defined in the language, and covering them all at this early stage is not necessary. Instead, let's take a look at the keywords that we'll encounter over the coming chapters.
Some of these words define basic types, (bool, char, int, and so on), some of them are statements to define program flow (if, else, switch, and so on), and others define objects and scope (class, struct, namespace, and so on).
We'll be using these throughout the book, but for now we just need to know that these words are reserved by C++. You'll be able to tell...