Chapter 4 Flashcards
(26 cards)
abstraction
hide details that we don’t need to use behind a convenient and general interface
computation
act of producing some outputs based on some inputs
declaration
tells the compiler about a function’s name, return type, and parameters
definition
provides the actual body of the function
expression
computes a value from a number of operands
for - statment
iteration over a sequence of values
function
named sequence of statements
increment
an operator that adds 1 to the operand
lvalue
value that can appear on the left-hand side of an assignment
statement
a bloke of code does something; stamens are terminated by a semicolon
if - statement
if condition is true then 1st statement is executed; otherwise the 2nd statement is
switch-statement
a selection based on comparison of a value against several constants
iteration
The statements that cause a set of statements to be executed repeatedly on a sequence of elements
while-statement
allows to repeatedly run the same block of code until a condition is met
loop
repeat some statement
lvalue
object
begin()
returns an iterator pointing to the first element of the vector container
end()
returns an iterator pointing to the last element of the vector container
push_back()
a vector function that adds new element to a vector
input
values used by a computation
member function
a function that has its definition or its prototype within the class definition
push_back()
a vector member function that adds new element to a vector
size()
a vector member function that returns number of elements
rvalue
value