# 2.1.1 Vector Basics

In this lesson, you are going to explore **vectors**. Vectors are one of the most common list structures in C++. Vectors allow you to store multiple values in a single variable.

List structures are common in programming languages. C++ uses arrays and vectors, similar to Java’s use of arrays and ArrayLists, respectively.

In this course, you will use vectors exclusively. While arrays do have a place in C++, this course does not explore them.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mr-poston-1.gitbook.io/c++/2.-going-beyond-the-basics/2.1-vector-basics/2.1.1-vector-basics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
