$\require{cancel}$
Let's Get Started.
- I would like to create an electronic Cootie game.
- Thinking things over, I think I would like to implement the body parts as an enumerated type.
- Why an enumerated type?
- What is an enumerated type?
- What other options are there than an enumerated type?
- What are the strengths of an enumerated type?
- What are the weaknesses?
- What is the syntax to declare an enumerated type?
- A discussion of enumerated types starts on page 19 of the book.
- What will I want to be able to do with this enumerated type?
- Declare variables, I am sure it will be part of a class
- Print out values.
- Probably convert between int/size_t and the body part.
- I need to be careful that I put body part things in this file, not game implementation rules.
- To do things right, I will want to put these in their own header/implementation file.
- The newer c++ (c++20, c++23) has a new module system.
- Your book discusses this.
- But for now, you really need the legacy system.
- What goes in a header file?
- See page 7 for a discussion of guards.
- What goes in an implementation file?
- How do I compile this code?
- What should I do to test this code?
- We should not go away from this section until you know everything that was discussed.