Vectors

10 flashcardsby John
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What are vectors?
2
What are vectors Similar to in Java
Arraylists
3
Declair vector
vector<data type> name[(size, default_value)] [= {pos0, pos1, pos2} ]
4
Acessing vectors
vector.at(position) or vector[position]
5
Make vector 1 space bigger with value
vector.push_back(value)
6
How to return the size of a vector?
vector.size()
7
How to set the contents and size of a vector to 0
vector.clear()
8
How to add vectors to a file
#include<vector>
9
How to declair a vector of vectors
vector<vector<int>> name
10
How to acess a position in a vector of vectors
vector_of_vectors[vector_position][position_in_vector_position]
Study all 10 cards for free

More Languages flashcards

Rezepte 1-5 Wörter54 cardsLanguages · German → HungarianTPZsSvenska 1.9 - Restaurant43 cardsLanguages · Dutch → SwedishSeppe15 - house33 cardsLanguages · English → DutchDanielBiblical Hebrew Alphabet28 cardsLanguages · Hebrew → DutchJMK10 - Euthanasia part 222 cardsLanguages · English → FrenchQuentincipollino 3-44 decks · 70 cardsLanguagesanya€(1) Greetings and farewells15 cardsLanguages · German → EnglishpmugridgeTransitive verbs11 cardsLanguages · Polish → EnglishKianDutch-English Vocabulary: Emotions (Unit 2)153 cardsLanguages · Dutch → Englishtomdeutsch, lektion 6135 cardsLanguages · Czech → GermanAdélaLatin Vocabulary: Common Words92 cardsLanguages · Latin → EnglishJackFrench Passé Composé Grammar71 cardsLanguages · English → FrenchT

All Languages decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 10 cards for free