Solved

Two-dimensional CObArray

Posted on 1997-11-26
2
241 Views
Last Modified: 2011-09-20
Is there anyone who knows how to create a two-dimensional CObArray? I've tried to find it in all the books I have. But I've only got one-dimensional CObArray examples.
0
Comment
Question by:sccheung
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 10 total points
Comment Utility
I suggest you create template array eah element of it is in turn template array.

CArray<CYourClass, CYourClass&> rowArray;

CArray<rowArray, rowArray&> 2DArray;

I have never tried to use it but it may work
0
 

Author Comment

by:sccheung
Comment Utility
An array of array! Very interesting.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

772 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

13 Experts available now in Live!

Get 1:1 Help Now