Lecture 5: Arrays/Vectors

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

flashcard set

Earn XP

Description and Tags

Flashcards summarizing key terms and concepts related to arrays and vectors in C++ programming.

Last updated 5:21 PM on 3/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards

Array

A special variable storing an ordered list of data items.

2
New cards

Element

An item within an array.

3
New cards

Index

The location number of an element in an array.

4
New cards

Vector

A safer and more powerful form of an array, used in C++.

5
New cards

Declaration of Vector

A vector is declared using syntax: vector vectorName(numElements);

6
New cards

Accessing Vector Elements

Vector elements are accessed using the .at() method.

7
New cards

Vector Initialization

Vector elements are automatically initialized to zero.

8
New cards

Iterating Through Vectors

Using loops to access and manipulate vector elements.

9
New cards

Vector Size

A function that returns the number of vector elements.

10
New cards

Push Back

A method that appends a new element to the end of a vector.

11
New cards

Pop Back

A method that removes the last element of a vector.

12
New cards

Vector Copy Operation

The = operator performs an element-by-element copy of a vector.

13
New cards

Vector Equality Operation

The == operator compares two vectors element-by-element.

14
New cards

Two-Dimensional Array

An array declared with two dimensions, e.g., int myArray[R][C].

15
New cards

C Strings

Character arrays in C and C++ that store sequences of characters.

16
New cards

Null Character

A special character '' indicating the end of a string in C.

17
New cards

C++ Strings

A safer string type introduced in C++, accessible after #include .

18
New cards

Character Checking Functions

Functions like isalpha, isdigit, isspace to check character properties.

19
New cards

Character Conversion Functions

Functions like toupper and tolower convert character cases.

Explore top notes

note
Chapter 9: Chemical Equilibrium
Updated 1095d ago
0.0(0)
note
Wedding Wind
Updated 1257d ago
0.0(0)
note
College Prep Chemistry, Elements
Updated 1281d ago
0.0(0)
note
Grade 10 Biology: Lesson 9
Updated 1181d ago
0.0(0)
note
Chapter 9: Chemical Equilibrium
Updated 1095d ago
0.0(0)
note
Wedding Wind
Updated 1257d ago
0.0(0)
note
College Prep Chemistry, Elements
Updated 1281d ago
0.0(0)
note
Grade 10 Biology: Lesson 9
Updated 1181d ago
0.0(0)

Explore top flashcards

flashcards
Odyssey Test review
85
Updated 535d ago
0.0(0)
flashcards
duits kapitel 2 woordenschat
101
Updated 878d ago
0.0(0)
flashcards
US State Capitals
50
Updated 937d ago
0.0(0)
flashcards
APUSH 23-25 Simple IDs
90
Updated 60d ago
0.0(0)
flashcards
French Indefinite Articles
34
Updated 705d ago
0.0(0)
flashcards
AP Psych Unit 3
79
Updated 861d ago
0.0(0)
flashcards
Waves key words and definitions
21
Updated 476d ago
0.0(0)
flashcards
Map of East Asia- Physical map
34
Updated 428d ago
0.0(0)
flashcards
Odyssey Test review
85
Updated 535d ago
0.0(0)
flashcards
duits kapitel 2 woordenschat
101
Updated 878d ago
0.0(0)
flashcards
US State Capitals
50
Updated 937d ago
0.0(0)
flashcards
APUSH 23-25 Simple IDs
90
Updated 60d ago
0.0(0)
flashcards
French Indefinite Articles
34
Updated 705d ago
0.0(0)
flashcards
AP Psych Unit 3
79
Updated 861d ago
0.0(0)
flashcards
Waves key words and definitions
21
Updated 476d ago
0.0(0)
flashcards
Map of East Asia- Physical map
34
Updated 428d ago
0.0(0)