C++ Basic Skills: 36 - Vectors

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
912 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 23, 2011

How to use Vectors, a container from the Standard Template Library.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • @ 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.

  • Your tutorials are fucking brilliant. Period.

  • Thanks.

  • best c++ vector tutorials

    my head going crazy watching other tutorials

    and als0 myvector[3] will give you fourth element i.e 3  :P

  • 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 ??

  • myVector[3] gives you the fourth element

  • i cannot believe how fast and accurate your typing is, it's godlike

  • great! I hope you make some that use algorithms on the iterators too!

  • What's good book about C++?

  • @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.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more