Skip to Content
Beginning C++
book

Beginning C++

by Ivor Horton
November 2014
Beginner content levelBeginner
632 pages
19h 31m
English
Apress
Content preview from Beginning C++

CHAPTER 4

image

Making Decisions

Decision-making is fundamental to any kind of computer programming. It’s one of the things that differentiates a computer from a calculator. It means altering the sequence of execution depending on the result of a comparison. In this chapter, you’ll explore how to make choices and decisions. This will allow you to validate program input and write programs that can adapt their actions depending on the input data. Your programs will be able to handle problems where logic is fundamental to the solution. By the end of this chapter, you will have learned:

  • How to compare data values
  • How to alter the sequence of program execution ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning C++

Beginning C++

Brian Foster
Advanced C++

Advanced C++

Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price
Expert C++

Expert C++

Vardan Grigoryan, Shunguang Wu

Publisher Resources

ISBN: 9781484200070Purchase book