Solved

Two-dimensional CObArray

Posted on 1997-11-26
2
242 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
ID: 1174171
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
ID: 1174172
An array of array! Very interesting.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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.

930 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

11 Experts available now in Live!

Get 1:1 Help Now