Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 2-dimensional arrays Pin
eivanlo29-Jan-06 20:02
eivanlo29-Jan-06 20:02 
GeneralRe: 2-dimensional arrays Pin
Prakash Nadar29-Jan-06 19:57
Prakash Nadar29-Jan-06 19:57 
GeneralRe: 2-dimensional arrays Pin
Owner drawn29-Jan-06 20:00
Owner drawn29-Jan-06 20:00 
GeneralRe: 2-dimensional arrays Pin
Prakash Nadar29-Jan-06 20:01
Prakash Nadar29-Jan-06 20:01 
GeneralRe: 2-dimensional arrays Pin
Owner drawn29-Jan-06 20:05
Owner drawn29-Jan-06 20:05 
GeneralRe: 2-dimensional arrays Pin
eivanlo29-Jan-06 21:00
eivanlo29-Jan-06 21:00 
GeneralRe: 2-dimensional arrays Pin
Owner drawn29-Jan-06 21:09
Owner drawn29-Jan-06 21:09 
GeneralRe: 2-dimensional arrays Pin
eivanlo29-Jan-06 21:26
eivanlo29-Jan-06 21:26 
Again, since I dont know the size of the puzzle, how do I know the index number of the target element for swapping, at this moment I know the index number of h is (hrow, hcol)?

Am I wrong if I think this way?

e.g.

C | B
A | h

Assume the location of h at the keyboard is always on 5, then I hit 4 to swap h with A, hit 8 to swap B with h, and hit 7 to swap C with h.

For swapping A
tar_row = hrow;
tar_col = --hcol;

For swapping B
tar_row = --hrow;
tar_col = hcol;

For swapping C
tar_row = --hrow;
tar_col = --hcol;

Am I wrong?
GeneralRe: 2-dimensional arrays Pin
eivanlo30-Jan-06 4:32
eivanlo30-Jan-06 4:32 
Question[Message Deleted] Pin
Hamid_RT29-Jan-06 18:24
Hamid_RT29-Jan-06 18:24 
AnswerRe: Hello Pin
Prakash Nadar29-Jan-06 20:00
Prakash Nadar29-Jan-06 20:00 
AnswerRe: Hello Pin
Eytukan29-Jan-06 20:39
Eytukan29-Jan-06 20:39 
QuestionChanging button text Pin
Learner200629-Jan-06 17:21
Learner200629-Jan-06 17:21 
AnswerRe: Changing button text Pin
Owner drawn29-Jan-06 17:25
Owner drawn29-Jan-06 17:25 
GeneralRe: Changing button text Pin
Learner200629-Jan-06 18:33
Learner200629-Jan-06 18:33 
AnswerRe: Changing button text Pin
Gavin Taylor29-Jan-06 17:28
professionalGavin Taylor29-Jan-06 17:28 
GeneralRe: Changing button text Pin
Ryan Binns29-Jan-06 17:43
Ryan Binns29-Jan-06 17:43 
GeneralRe: Changing button text Pin
Gavin Taylor29-Jan-06 17:48
professionalGavin Taylor29-Jan-06 17:48 
GeneralRe: Changing button text Pin
Learner200629-Jan-06 19:20
Learner200629-Jan-06 19:20 
GeneralRe: Changing button text Pin
Gavin Taylor29-Jan-06 19:33
professionalGavin Taylor29-Jan-06 19:33 
Question_variant_t to *Byte Pin
KifayatullahKhan29-Jan-06 17:17
KifayatullahKhan29-Jan-06 17:17 
AnswerRe: _variant_t to *Byte Pin
Aamir Butt29-Jan-06 22:24
Aamir Butt29-Jan-06 22:24 
QuestionDisabling Drag/Drop in the IWebBrowser2 Control Pin
Wolfram Steinke29-Jan-06 16:45
Wolfram Steinke29-Jan-06 16:45 
QuestionBase64 encoding in Visual C++ Pin
Syazarine29-Jan-06 16:39
Syazarine29-Jan-06 16:39 
AnswerRe: Base64 encoding in Visual C++ Pin
Gavin Taylor29-Jan-06 16:57
professionalGavin Taylor29-Jan-06 16:57 

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.