1. Computing

C++ Tutorial on Vectors published

By February 10, 2013

Follow me on:

This is the fifth C++ programming tutorial in the series and looks at using the vector template class to follow on from arrays in tutorial four.

I've always liked the vector template class. It's easy to use and gives more reliable code if you use the .at() to indexthe vector rather than the [] syntax. Depending on your need though the List and Array template classes may be more suited. I'll be looking at those in the next tutorial.

Comments
Comments are closed for this post.
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.