Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPassing a collection using the Standard Template Library Pin
Leslie Sanford28-Aug-07 10:33
Leslie Sanford28-Aug-07 10:33 
AnswerRe: Passing a collection using the Standard Template Library Pin
Chris Losinger28-Aug-07 10:59
professionalChris Losinger28-Aug-07 10:59 
GeneralRe: Passing a collection using the Standard Template Library Pin
Leslie Sanford28-Aug-07 11:03
Leslie Sanford28-Aug-07 11:03 
GeneralRe: Passing a collection using the Standard Template Library Pin
Chris Losinger28-Aug-07 11:11
professionalChris Losinger28-Aug-07 11:11 
GeneralRe: Passing a collection using the Standard Template Library Pin
Leslie Sanford28-Aug-07 12:06
Leslie Sanford28-Aug-07 12:06 
AnswerRe: Passing a collection using the Standard Template Library Pin
Michael Dunn28-Aug-07 11:10
sitebuilderMichael Dunn28-Aug-07 11:10 
QuestionPrototype a Struct Pin
Jim Warburton28-Aug-07 8:09
Jim Warburton28-Aug-07 8:09 
AnswerRe: Prototype a Struct Pin
El Corazon28-Aug-07 8:17
El Corazon28-Aug-07 8:17 
jimwawar wrote:
The above code throws an errors as Node has not been declared. Can Node be used inside the struct Node?
Thanks for any help.


It is a little easier to do with a class than a struct, but you need a struct name rather than a typedef, and you need pointer references.

<br />
typedef struct stNode<br />
{<br />
// other declarations<br />
struct stNode *child[4];<br />
} Node;<br />


The main reason you want pointer references is that every child would have children, which would have children, which would have children, which would have children, etc. A pointer is a fixed size.

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

AnswerRe: Prototype a Struct Pin
Stephen Hewitt28-Aug-07 14:43
Stephen Hewitt28-Aug-07 14:43 
QuestionHow to debug this? (MFC dialog control question.) Pin
@largeinsd28-Aug-07 6:47
@largeinsd28-Aug-07 6:47 
QuestionRe: How to debug this? (MFC dialog control question.) Pin
David Crow28-Aug-07 6:56
David Crow28-Aug-07 6:56 
AnswerRe: How to debug this? (MFC dialog control question.) Pin
@largeinsd28-Aug-07 7:19
@largeinsd28-Aug-07 7:19 
QuestionRe: How to debug this? (MFC dialog control question.) Pin
David Crow28-Aug-07 7:28
David Crow28-Aug-07 7:28 
AnswerRe: How to debug this? (MFC dialog control question.) Pin
@largeinsd28-Aug-07 9:00
@largeinsd28-Aug-07 9:00 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
David Crow28-Aug-07 9:06
David Crow28-Aug-07 9:06 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
@largeinsd28-Aug-07 9:54
@largeinsd28-Aug-07 9:54 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
David Crow28-Aug-07 10:40
David Crow28-Aug-07 10:40 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
@largeinsd28-Aug-07 10:40
@largeinsd28-Aug-07 10:40 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
David Crow28-Aug-07 10:44
David Crow28-Aug-07 10:44 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
Reagan Conservative28-Aug-07 8:26
Reagan Conservative28-Aug-07 8:26 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
@largeinsd28-Aug-07 9:07
@largeinsd28-Aug-07 9:07 
GeneralRe: How to debug this? (MFC dialog control question.) Pin
David Crow28-Aug-07 10:42
David Crow28-Aug-07 10:42 
Questionfile creation failure Pin
act_x28-Aug-07 6:13
act_x28-Aug-07 6:13 
AnswerRe: file creation failure Pin
Chris Losinger28-Aug-07 6:23
professionalChris Losinger28-Aug-07 6:23 
AnswerRe: file creation failure Pin
Chris Meech28-Aug-07 6:47
Chris Meech28-Aug-07 6:47 

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.