CH_2_Intro_To_C++ Flashcards
Namespace
ANSI C++ feature that allows programmers to create a scope for global identifiers. They are useful in preventing errors when two or more global declarations use the same name.d
Function
A group of one or more programming statements that has a name.
Stream Insertion Operator
«_space;The item immediately to the right of the operator is “inserted” into the ouput stream that is sent to cout to be displayed on the screen.
Stream Manipulator
Indicates how a stream of output characters should be displayed.
Literal
A piece of data that is written directly into a program’s code.
Identifier
A programmer-defined name that represents some element of a program.
Mantissa
The fractional part of the common (base-10) logarithm
sizeof
A special operator that will report the number of bytes of memory being used by any data type or variable.
Variable Initialization
When a variable is assigned at the time it is defined.
Assignment Statement
The statement that stores a value in a variable.
Definition Statement
The statement that creates a variable and articulates its type.
Variable Scope
The part of the program that can access the variable.
Insertion Operator
«
3 Types of Operators
- Unary
- Binary
- Ternary
Unary Operator
Only requires a single operand
Binary Operator
Work with two operands
Ternary Operators
Required three operands
Integer Division
If two integers are used with the division operator, the remainder will be truncated.
Comments
Notes of explanation that document lines or sections of a program
Member Function
A function that belongs to a Class Type
Type Casting