CH. 5 Loops and Files C++

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

continue statement

causes a loop to stop its current iteration and begin the next one

break statement

causes the loop to terminate early

fstream

file stream

read position

marks the location of the next byte that will be read from the file

postfix mode

operator placed after variable

prefix mode

operator placed before variable

accumulator

variable used to keep the running total

nested loop

a loop inside another loop

count-controlled loop

a loop that repeats a specific number of times

sentinel

a special value that marks the end of a list of values

user-controlled loop

allows user to control the number of iterations

loop

control structure that causes a statement or group of statements to repeat

loop control variable

controls the number of times a loop iterates

decrement

decrease a value

posttest loop (Ex: do-while loop)

does not test its expression until it has completed an iteration

an iteration

each repetition of a loop

conditional loop

executes as long as a particular condition exists

increment

increase a value

ifstream

input file stream

++ and --

operators that add or subtract 1 from their operands

ofstream

output file stream

file buffer

small 'holding section' of memory that file bound data is first written to

running total

sum of numbers that accumulates with each iteration of a loop

priming read

the read operation that takes place just before the loop

The 3 looping control structures of c++

the while loop, do-while loop, and the for loop

infinite loop

used only in rare cases and continues to repeat until the program is interrupted

counter

variable that is regularly incremented or decremented each time a loop iterates


Ensembles d'études connexes

Biomechanics - Wrist/Hand Questions

View Set

anatomy and physiology chapter 6

View Set

Cultural Area: Indigenous North America

View Set

AC 210-003: Chapter 6 Learn Smart

View Set

Harr MLS Review Chemistry 5.8 Clinical Endocrinology

View Set

The Institutions of Government and The Separation of Powers

View Set

Ch 40: Care of Veterans with Mental Health Needs

View Set

Massachusetts Life and Health Insurance Exam

View Set

Microbiology Test 1- Short Answer

View Set

INTEGRATED CHEMISTRY & PHYSICS A Q&A

View Set