Solved

dynamic 2d array

Posted on 2002-03-19
2
175 Views
Last Modified: 2010-04-02
is there any container that can act like a dynamic 2d array..which size could be changed ?

0
Comment
Question by:prinx
2 Comments
 
LVL 2

Expert Comment

by:LoungeLizard
ID: 6881993
Do you want both dimensions to be dynamically changeable? I don't think there is a standard STL class that can do that, but it should be easy enough to build your own. Just use a list of lists or something similar. If you want to have the same "feel" as a traditional array you can put that in your own class where you overload []

0
 
LVL 5

Accepted Solution

by:
proskig earned 50 total points
ID: 6882237
well, it is definitely not so easy as it seems to be, but definitely doable. See the following link
http://www.cuj.com/articles/2000/0012/0012c/0012c.htm
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question