Jump to content
  • Advertisement

Archived

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

RogueFiend

Multidimensional Vectors?

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

If you intended to correct an error in the post then please contact us.

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 this post


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

Share this post


Link to post
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 this post


Link to post
Share on other sites
Do you mean something like:
    
std::vector<std::vector<int> > 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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!