#### Archived

This topic is now archived and is closed to further replies.

# Multidimensional Vectors?

This topic is 6475 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Is there a way to create multidemsional vectors? or is there another stl conainer hat funcions like multidensional arrays except with a dynamic size?.

##### Share on other sites
As far as I know, the definition of vector is such that it is only one dimensional.

##### Share on other sites
Well...
The answer could be as simple as making a list of a class that is multi dimensional.

The list stores one array, but each element gives you access to coresponding elements.

I think therefore I code.

##### Share on other sites
Do you mean something like:
  std::vector > 2dVector;

Make sure you put the space between the two > > or you just made the input operator. >>

Later,
Eck

Edited by - Eck on September 1, 2000 11:40:23 AM

• 9
• 13
• 40
• 15
• 11