Skip to content

Instantly share code, notes, and snippets.

@ampulhetadosaber
Last active August 26, 2020 23:51
Show Gist options
  • Save ampulhetadosaber/0b2c949e2f077afe8db6021a1926ca27 to your computer and use it in GitHub Desktop.
Save ampulhetadosaber/0b2c949e2f077afe8db6021a1926ca27 to your computer and use it in GitHub Desktop.
vector<int> I;
I.push_back(10);
I.push_back(17);
I.push_back(0);
I.push_back(-15);
cout << I.back() << "\n";
// imprimimos o ultimo elemento de I, no caso -15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment