hey man , nice video , could you continue it with containers that can be accessed randomly ,i mean how can i add and remove elements from a location in array/ vector, which not necessarily first or last i.e from any location ??
@AnLa061095 Welcome to the world of STL! Other langauges actually borrowed how C++ did these things (because it came out with it first). There are others in the STL such as maps, lists, stack, etc.
@ 12:52 why myVector contains only {0, 4}
I thought of it like {0, 2, 4}
since the code : myVector.erase(myVector.begin() + 2 and 4 only?
and why the elements are being deleted instead of returning it to the intial value of 0?
please reply. Im quite confuse.
mark5rockzz 2 weeks ago
Your tutorials are fucking brilliant. Period.
FatalRescue 1 month ago
Thanks.
nancymyle 3 months ago
best c++ vector tutorials
my head going crazy watching other tutorials
and als0 myvector[3] will give you fourth element i.e 3 :P
webster01web 4 months ago
hey man , nice video , could you continue it with containers that can be accessed randomly ,i mean how can i add and remove elements from a location in array/ vector, which not necessarily first or last i.e from any location ??
jigar1859 4 months ago
myVector[3] gives you the fourth element
Peterolen 4 months ago
i cannot believe how fast and accurate your typing is, it's godlike
treweof 4 months ago
great! I hope you make some that use algorithms on the iterators too!
BLOOMS 4 months ago
What's good book about C++?
rapsod1911 4 months ago
@AnLa061095 Welcome to the world of STL! Other langauges actually borrowed how C++ did these things (because it came out with it first). There are others in the STL such as maps, lists, stack, etc.
Techn0Junki3 4 months ago