Solved

2D array of CRect

Posted on 2008-10-21
1
354 Views
Last Modified: 2013-11-20
Hiya

Can anybody tell me how to create a two dimensional array of CRect objects in an MFC application?

John
0
Comment
Question by:IssacJones
[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
1 Comment
 
LVL 7

Accepted Solution

by:
tg_wilk earned 250 total points
ID: 22773001
the normal way?

CRect MyArray [5][5]; //5x5 array
 
//and you can access the elements like this;
for (int i=0; i<5; i++)
{
   for (int j=0; j<5; j++)
   {
      CRect rectangle = MyArray[i][j];
   }
}

Open in new window

0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Path of Workbook 3 87
Trying to run powershell  in a batch file. How do I do this? 8 117
CONDITIONAL MAX STATEMENT IN T-SQL 3 85
Advice in Xamarin 21 109
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

726 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