-
-
Save parzibyte/f52ed955e96bf4f819c23c5543cc8231 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::vector<int> numeros; | |
// Insertar al inicio | |
numeros.insert(numeros.begin(), 100); | |
// Insertar en la posición 1 | |
numeros.insert(numeros.begin() + 1, 500); | |
// Insertar en la penúltima posición | |
numeros.insert(numeros.end() - 1, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment