Solved

dynamic 2d array

Posted on 2002-03-19
2
171 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now