Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
22 Cards in this Set
- Front
- Back
Array |
Allows you to work with multiple values at the same time |
|
size declarer |
arrayname[size declarer] |
|
subscripts |
define specific location within array |
|
Global Array values |
0 |
|
off by one error |
the first subscript value is 0. if you start a counter at 1 you miss the first element |
|
comparing arrays |
must be done element by element. cant use array1 == array2 |
|
how are strings stored |
as arrays |
|
Parrallel Arrays |
data items stored in two or more related arrays |
|
typeof |
allows an alias to be associated with a data type |
|
two dimensional array |
an array that can hold 2 sets of values. 2d array. arrayname[rows][columns] |
|
STL
|
Standard Template Library. a collection of programmer defined data types |
|
Containers |
data types defined in the stl |
|
Two types of containers |
Sequence Containers |
|
Sequence containers |
organize data in sequence like an array |
|
associative containers |
organize data with keys allowing random access |
|
Vector |
#include vector |
|
push back function |
how to store a value ina vector that does not have a starting size or is already full |
|
pop back function |
removes an element from an array |
|
clear a vector |
vectorname.clear |
|
detecting empty vectors |
vectorname.empty() |
|
How to pass an array by value
|
not done. Automatically by reference. |
|
String/cstring header |
<string> <cstring> |