Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is this a trick question? Pin
Tim Smith25-Oct-03 8:11
Tim Smith25-Oct-03 8:11 
GeneralRe: Is this a trick question? Pin
Ravi Bhavnani25-Oct-03 8:24
professionalRavi Bhavnani25-Oct-03 8:24 
AnswerRe: Is this a trick question? Pin
Gary R. Wheeler25-Oct-03 4:10
Gary R. Wheeler25-Oct-03 4:10 
GeneralRe: Is this a trick question? Pin
Ravi Bhavnani25-Oct-03 4:12
professionalRavi Bhavnani25-Oct-03 4:12 
GeneralRe: Is this a trick question? Pin
Gary R. Wheeler25-Oct-03 5:28
Gary R. Wheeler25-Oct-03 5:28 
GeneralRe: Is this a trick question? Pin
CillyMe25-Oct-03 8:01
CillyMe25-Oct-03 8:01 
GeneralLink List and Middle Node Pin
CillyMe24-Oct-03 21:31
CillyMe24-Oct-03 21:31 
GeneralRe: Link List and Middle Node Pin
Ravi Bhavnani25-Oct-03 4:15
professionalRavi Bhavnani25-Oct-03 4:15 
If you have a pointer to the head and tail of the list, you can walk those pointers in opposite directions until they're equal. You're then pointing to the "middle" of the linked list. Of course, this only works when the number of elements in the list is odd.

/ravi

Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: Link List and Middle Node Pin
Michael Dunn25-Oct-03 7:16
sitebuilderMichael Dunn25-Oct-03 7:16 
GeneralRe: Link List and Middle Node Pin
CillyMe25-Oct-03 8:03
CillyMe25-Oct-03 8:03 
GeneralRe: Link List and Middle Node Pin
Ravi Bhavnani25-Oct-03 17:37
professionalRavi Bhavnani25-Oct-03 17:37 
Generalhumble request for more cp knowledge :) Pin
joshfl24-Oct-03 20:15
joshfl24-Oct-03 20:15 
Generalfunction was treated as identifier :( Pin
convert_sg24-Oct-03 18:47
convert_sg24-Oct-03 18:47 
GeneralRe: function was treated as identifier :( Pin
peterchen24-Oct-03 20:17
peterchen24-Oct-03 20:17 
GeneralRe: function was treated as identifier :( Pin
convert_sg24-Oct-03 21:33
convert_sg24-Oct-03 21:33 
GeneralRe: function was treated as identifier :( Pin
Luis Mejia25-Oct-03 6:59
Luis Mejia25-Oct-03 6:59 
QuestionHow to move MFC 4.2 MDIChild windows outside MDIClient? Pin
Mike Condra24-Oct-03 17:58
sussMike Condra24-Oct-03 17:58 
AnswerRe: How to move MFC 4.2 MDIChild windows outside MDIClient? Pin
Neville Franks24-Oct-03 23:43
Neville Franks24-Oct-03 23:43 
QuestionHow to move a CRectTracker in resppnse to the arrow keys? Pin
cdsmith24-Oct-03 16:20
cdsmith24-Oct-03 16:20 
GeneralUser-Defined Messages Pin
Douglass24-Oct-03 16:15
Douglass24-Oct-03 16:15 
GeneralRe: User-Defined Messages Pin
Neville Franks24-Oct-03 23:49
Neville Franks24-Oct-03 23:49 
GeneralDeriving from CDumpContext and << operator Pin
Ori K24-Oct-03 14:54
Ori K24-Oct-03 14:54 
Generalshowing graphics in view after closing dialog Pin
coda_x24-Oct-03 14:14
coda_x24-Oct-03 14:14 
GeneralRe: showing graphics in view after closing dialog Pin
vcplusplus24-Oct-03 15:28
vcplusplus24-Oct-03 15:28 
GeneralRe: showing graphics in view after closing dialog Pin
coda_x24-Oct-03 17:20
coda_x24-Oct-03 17:20 

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.