Abstract
As mentioned in section 1.7, a selection involves choosing between two or more different actions depending on the value of a data item or some condition. We can illustrate the concept of selecting different actions and the associated C++ language constructs by developing further the student marks example from chapter 5. This will involve taking different actions depending on the values of the examination mark and the practical mark.
Preview
Unable to display preview. Download preview PDF.
Copyright information
© 1997 J.P Pardoe and M.J. King
About this chapter
Cite this chapter
Pardoe, J., King, M. (1997). An Introduction to Selection. In: Object Oriented Programming Using C++. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-14449-5_6
Download citation
DOI: https://doi.org/10.1007/978-1-349-14449-5_6
Publisher Name: Palgrave, London
Print ISBN: 978-0-333-69241-7
Online ISBN: 978-1-349-14449-5
eBook Packages: EngineeringEngineering (R0)