Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Runtime ComboBox Question Pin
toxcct10-Oct-04 21:10
toxcct10-Oct-04 21:10 
QuestionHow l Pin
lordmickel10-Oct-04 8:48
lordmickel10-Oct-04 8:48 
AnswerRe: How l Pin
Christian Graus10-Oct-04 8:54
protectorChristian Graus10-Oct-04 8:54 
GeneralRe: How l Pin
lordmickel10-Oct-04 9:21
lordmickel10-Oct-04 9:21 
GeneralRe: How l Pin
Christian Graus10-Oct-04 9:30
protectorChristian Graus10-Oct-04 9:30 
GeneralRe: How l Pin
lordmickel11-Oct-04 7:59
lordmickel11-Oct-04 7:59 
GeneralRe: How l Pin
Christian Graus11-Oct-04 10:19
protectorChristian Graus11-Oct-04 10:19 
AnswerRe: How l Pin
Antti Keskinen10-Oct-04 8:56
Antti Keskinen10-Oct-04 8:56 
If you need to 'prove' that certain elements (an element of a list contains a value and a pointer to the next element) are members of a list, then the most effective way is to start from the header element and print the value of the 'next' pointer, which is the address of the next element. Then you would move into the next element, print it's address (which resolves to the same as the 'next' pointer on the previous cell), and print the value of this new element's 'next' pointer and move on again, repeating the process.

This will bring forth an effective way to prove that certain elements are linked to each other. It will not work for circularly linked lists, because the loop would never end. For a non-circular list, the last 'next' pointer is a NULL value.

However, I see no reason in 'proving' that the elements are members of a list. Why would anyone need to do such ? Isn't it enough if the list fills it's purpose, whatever that purpose might be ?

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: How l Pin
lordmickel10-Oct-04 9:23
lordmickel10-Oct-04 9:23 
AnswerRe: How l Pin
Paul Ranson11-Oct-04 10:55
Paul Ranson11-Oct-04 10:55 
GeneralRe: How l Pin
lordmickel13-Dec-04 10:41
lordmickel13-Dec-04 10:41 
Generalsystem info Pin
Lanre Ogunkola10-Oct-04 6:35
Lanre Ogunkola10-Oct-04 6:35 
GeneralRe: system info Pin
Ravi Bhavnani10-Oct-04 7:09
professionalRavi Bhavnani10-Oct-04 7:09 
GeneralRe: system info Pin
Graham Bradshaw10-Oct-04 9:21
Graham Bradshaw10-Oct-04 9:21 
GeneralRe: system info Pin
Ryan Binns10-Oct-04 18:16
Ryan Binns10-Oct-04 18:16 
GeneralRe: system info Pin
Graham Bradshaw11-Oct-04 0:43
Graham Bradshaw11-Oct-04 0:43 
GeneralRe: system info Pin
Ryan Binns11-Oct-04 14:33
Ryan Binns11-Oct-04 14:33 
GeneralRe: system info Pin
Aamir Butt11-Oct-04 0:11
Aamir Butt11-Oct-04 0:11 
GeneralRe: system info Pin
Graham Bradshaw11-Oct-04 0:48
Graham Bradshaw11-Oct-04 0:48 
GeneralRe: system info Pin
Abbas_Riazi11-Oct-04 7:35
professionalAbbas_Riazi11-Oct-04 7:35 
GeneralFunctions in Structures !?! Pin
QuasarZ !?!10-Oct-04 6:04
sussQuasarZ !?!10-Oct-04 6:04 
GeneralRe: Functions in Structures !?! Pin
Antti Keskinen10-Oct-04 9:10
Antti Keskinen10-Oct-04 9:10 
Questionstreaming wav on the web through activeX control? Pin
FASTian10-Oct-04 5:06
FASTian10-Oct-04 5:06 
AnswerRe: streaming wav on the web through activeX control? Pin
Ravi Bhavnani10-Oct-04 7:13
professionalRavi Bhavnani10-Oct-04 7:13 
Generalnew Items in my Toolbox Pin
Serhiy10-Oct-04 4:55
Serhiy10-Oct-04 4:55 

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.