Issue: Which of the names in params.cpp
are
keywords, which are autos, and which are externs?
In Lab #2 we looked at the rules for creating identifiers, and there
we noted that C++ has key words
(a.k.a. reserved
words) which are used for particular uses and we cannot use them for
our own variables. Any C++ book should have a list of these keywords
(Appendix B of C++ An Introduction to Computing). You may be
surprised by what identifiers are not on that list (like cin
and cout
).
Exercise:
params.cpp
.Hint: you cannot do this exercise without a list of keywords, and you should start by identifying all of the keywords first.