Created
May 26, 2019 21:42
-
-
Save elvis-epx/e394409a2a50f45f6427808318b85dfc to your computer and use it in GitHub Desktop.
Exemplo vetor
This file contains hidden or 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
| #include <vector> | |
| struct tipo1 {}; | |
| int main() | |
| { | |
| std::vector<tipo1> vetor; | |
| vetor.push_back(tipo1()); | |
| vetor.push_back(tipo1()); | |
| vetor.push_back(tipo1()); | |
| tipo1 Copia = vetor.at(1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment