2012 | OriginalPaper | Buchkapitel
2. Flow of Control
verfasst von : Dr. Joe Pitt-Francis, Dr. Jonathan Whiteley
Erschienen in: Guide to Scientific Computing in C++
Verlag: Springer London
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
Abstract
if
statement. Similarly we may use a while
statement to execute a collection of statements until a specified condition is met, and a for
loop to execute a collection of statements a specified number of times. This flow of control often depends on relations between operators (such as greater than) and on combinations of expressions (such as two conditions both being true). In this chapter we explain how to utilise these features of the C++ language.