Learn C++: Vectors
Organize data in C++ with std::vector: create vectors, add and remove elements, loop over them, use standard algorithms, compare them with arrays, and finish with a grade-book project.
- Beginner level
- 2 modules
- 6 lessons
- 24 tasks and questions
Syllabus
01Vectors and ArraysKeep lists of values in std::vector: create, grow and shrink them, loop over their elements, use standard algorithms on them, and see how they compare with built-in arrays and std::array.5 lessons
02ProjectUse vectors, loops and standard algorithms together in a small grade-book program.1 lesson