1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Vector

By David Bolton, About.com

Definition: A Vector is another name for a single dimension array. It is also the name of a C++ STL template class.

In the STL, the Vector class is similar to STL List class with one main difference - individual elements in a Vector can be accessed by position. In a List they can't be.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Also Known As: Array, List
Examples:
I implemented the text editor as a vector of strings.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. Vector - Definition

©2009 About.com, a part of The New York Times Company.

All rights reserved.