Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pause Pin
Cedric Moonen13-Apr-04 3:23
Cedric Moonen13-Apr-04 3:23 
GeneralRe: Pause Pin
Anonymous13-Apr-04 3:39
Anonymous13-Apr-04 3:39 
GeneralRe: Pause Pin
Cedric Moonen13-Apr-04 3:40
Cedric Moonen13-Apr-04 3:40 
GeneralRe: Pause Pin
JeabJB13-Apr-04 4:17
JeabJB13-Apr-04 4:17 
GeneralSet icon in CDialog Pin
anderslundsgard13-Apr-04 2:08
anderslundsgard13-Apr-04 2:08 
GeneralRe: Set icon in CDialog Pin
gUrM33T13-Apr-04 2:34
gUrM33T13-Apr-04 2:34 
GeneralRe: Set icon in CDialog Pin
anderslundsgard13-Apr-04 2:51
anderslundsgard13-Apr-04 2:51 
GeneralLogic Problem with array value assigning Pin
JHAKAS13-Apr-04 1:41
JHAKAS13-Apr-04 1:41 
Hello

I am having two arrays of a object.
I got fixed up in finding the solution for following problem.

Array 1 holds value for the following cordinates

1 2 3 4 5
6 7 8 9 10

Array 2 can be any different situation, from above say like

1 2 3
4 5 6
7 8 9


In the object stored into the array element, there is one value "Height". Now i want to assign height in following fashion. This is done to make the previously assigned height in array1 to remain intact in a order of their coming in row.

A1 -> A2
1 1
2 2
3 3
6 4
7 5
8 6

i.e. If any addition point is there in a row then leave that additional point like 4,5 in array1 and similarly if rows are more than also leave it.

NOTE
Both Array1 and Array2 are one dimensional array, but the logical position/location of values stored in it is like this. So this is to give an idea that with this type and any similar cases (where rows and points per row increases or decreases) , how the value is to be assigned.


So main aim is to assign the array element shown in above and below example based on following mentioned logical positioning of the points.

NOTE: Well number of rows and points per rows in both case is provided.

Other example can be like this:
Array 1
1 2 3 4
5 6 7 8
9 10 11 12

Array2
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15


Assigning:
A1 -> A2
1 1
2 2
3 3
4 4
5 6
6 7
7 8
8 9
9 11
10 12
11 13
12 14

How to do this?
Am i clear in communicating the problem i am facing?

_________________
Leave Your Mark Wherever You Go



Leave your mark wherever you go
GeneralRe: Logic Problem with array value assigning Pin
JHAKAS13-Apr-04 19:46
JHAKAS13-Apr-04 19:46 
QuestionTheme with MFC – Possible? Pin
anderslundsgard13-Apr-04 1:12
anderslundsgard13-Apr-04 1:12 
GeneralForm Width Pin
uus9913-Apr-04 1:12
uus9913-Apr-04 1:12 
GeneralRe: Form Width Pin
gUrM33T13-Apr-04 2:02
gUrM33T13-Apr-04 2:02 
GeneralRe: Form Width Pin
uus9914-Apr-04 2:13
uus9914-Apr-04 2:13 
GeneralURGENT:Redrawing Pin
stelitsisan13-Apr-04 1:00
stelitsisan13-Apr-04 1:00 
GeneralRe: URGENT:Redrawing Pin
wb13-Apr-04 2:05
wb13-Apr-04 2:05 
GeneralWMI errors in VC7 Pin
roadragedave13-Apr-04 0:02
roadragedave13-Apr-04 0:02 
GeneralRe: WMI errors in VC7 Pin
Anthony_Yio13-Apr-04 0:22
Anthony_Yio13-Apr-04 0:22 
GeneralRe: WMI errors in VC7 Pin
roadragedave13-Apr-04 1:34
roadragedave13-Apr-04 1:34 
GeneralRe: WMI errors in VC7 Pin
Mike Dimmick13-Apr-04 3:29
Mike Dimmick13-Apr-04 3:29 
GeneralRe: WMI errors in VC7 Pin
roadragedave13-Apr-04 4:04
roadragedave13-Apr-04 4:04 
GeneralRe: WMI errors in VC7 Pin
Mike Dimmick13-Apr-04 9:09
Mike Dimmick13-Apr-04 9:09 
GeneralRe: WMI errors in VC7 Pin
roadragedave14-Apr-04 1:31
roadragedave14-Apr-04 1:31 
Questionhow shall i add a toolbar to IE using MFC but using WTL/WTL/others Pin
NewtonOfComputers12-Apr-04 23:51
NewtonOfComputers12-Apr-04 23:51 
AnswerRe: how shall i add a toolbar to IE using MFC but using WTL/WTL/others Pin
alto13-Apr-04 0:07
alto13-Apr-04 0:07 
GeneralRe: how shall i add a toolbar to IE using MFC but using WTL/WTL/others Pin
NewtonOfComputers13-Apr-04 0:13
NewtonOfComputers13-Apr-04 0:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.