/robowaifu/'s C++ learning textbook chapter 06
Writing a Program
“Programming is understanding.” – Kristen Nygaard
"Writing a program involves gradually refining your ideas of what you want to do and how you want to express it. In this chapter and the next, we will develop a program from a first vague idea through stages of analysis, design, implementation, testing, redesign, and re-implementation. Our aim is to give you some idea of the kind of thinking that goes on when you develop a piece of code. In the process, we discuss program organization, user-defined types, and input processing."
- § 6.1 A problem
- § 6.3 Back to the calculator!
- § 6.3.1 First attempt - part a
- § 6.3.1 First attempt - part b
- § 6.3.3 Implementing tokens - part a
- § 6.3.3 Implementing tokens - part b
- § 6.3.4 Using tokens
- § 6.4 Grammars - part a
- § 6.4 Grammars - part b
- § 6.4 Grammars - part c
- § 6.4 Grammars - part d
- § 6.4.1 A detour: English grammar
- § 6.4.2 Writing a grammar
- § 6.5.2.1 Expressions: first try
- § 6.5.2.2 Expressions: second try
- § 6.5.2.3 Expressions: third time lucky - part a
- § 6.5.2.3 Expressions: third time lucky - part b
- § 6.5.3 Terms - part a
- § 6.5.3 Terms - part b
- § 6.5.4 Primary expressions
- § 6.6 Trying the first version - part a
- § 6.6 Trying the first version - part b
- § 6.7 Trying the second version
- § 6.8 Token streams
- § 6.8.1 Implementing Token_stream
- § 6.8.2 Reading tokens
- § 6.8.3 Reading numbers
- § 6.9 Program structure