Course Data Structures Essentials

List

Course's Page 15 min Text by
User Image
Diego Rangel

Hello again ๐Ÿ˜ƒ. In this class, you will learn about Lists and its main functions.

The class is divided as follows:

  • Introduction to List
  • List in C++

Introduction

By now, you must have represented a grouping of data using vectors. The vector is a primitive data type structure that is statically allocated, that is, you need to determine the size of the vector before you can start using it. In the following code snippet, we show a brief example of what a vector declaration and value storage is like.

//Declaring a 10-position integer vector [0, 9]
int vet[10];

v[0] = 1;
v[1] = 2;
v[2] = 3;
v[3] = 4;
v[4] = 5;