Swipe to navigate through the chapters of this book
In this chapter, we will discuss one of the most basic and frequent operations you will perform as you program: comparing data. In the bookstore example, you may need to compare book titles if your clients are looking for a specific book. You may also need to compare authors if your clients are interested in purchasing books by a specific author. Comparing data is a common task performed by developers. Many of the loops you learned about in Chapter 8 will require you to compare data so that you know when your code should stop looping.
Please log in to get access to this content
To get access to this content you need the following product:
- Comparing Data
- Sequence number
- Chapter number
- Chapter 9