Solved

Two-dimensional CObArray

Posted on 1997-11-26
2
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

762 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