Last active
August 26, 2020 23:40
-
-
Save ampulhetadosaber/782538fef231bc6b4bd42102375d7ca4 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
vector<int> I; | |
// O comando push_back(elemento) adiciona ao final do vector o elemento desejado | |
I.push_back(10); | |
// adicionamos 10 ao final de I, nesse caso como I estava vazio 10 é o único elemento de I | |
I.push_back(17); | |
// adicionamos 17 após 10 | |
I.push_back(0); | |
// adicionamos 10 após 0 | |
I.push_back(-15); | |
// adicionamos -15 após 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment