Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ MFC program not on Windows Pin
Rajesh R Subramanian18-Apr-08 1:18
professionalRajesh R Subramanian18-Apr-08 1:18 
GeneralRe: Visual C++ MFC program not on Windows Pin
Cedric Moonen18-Apr-08 1:21
Cedric Moonen18-Apr-08 1:21 
QuestionRe: Visual C++ MFC program not on Windows Pin
CPallini18-Apr-08 1:30
mveCPallini18-Apr-08 1:30 
GeneralRe: Visual C++ MFC program not on Windows Pin
ThatsAlok18-Apr-08 3:46
ThatsAlok18-Apr-08 3:46 
GeneralRe: Visual C++ MFC program not on Windows Pin
Hamid_RT18-Apr-08 5:34
Hamid_RT18-Apr-08 5:34 
Question[Message Deleted] Pin
C.P.Rajesh18-Apr-08 0:05
C.P.Rajesh18-Apr-08 0:05 
GeneralRe: operator overloading Pin
CPallini18-Apr-08 0:21
mveCPallini18-Apr-08 0:21 
GeneralRe: operator overloading Pin
ThatsAlok18-Apr-08 3:21
ThatsAlok18-Apr-08 3:21 
GeneralRe: operator overloading Pin
CPallini18-Apr-08 4:15
mveCPallini18-Apr-08 4:15 
GeneralRe: [Message Deleted] Pin
Hamid_RT18-Apr-08 5:34
Hamid_RT18-Apr-08 5:34 
GeneralRe: [Message Deleted] Pin
Moak18-Apr-08 10:46
Moak18-Apr-08 10:46 
GeneralRe: [Message Deleted] Pin
Hamid_RT18-Apr-08 17:10
Hamid_RT18-Apr-08 17:10 
Generalany smarter ways to design this tree structure Pin
George_George17-Apr-08 23:58
George_George17-Apr-08 23:58 
GeneralOT Pin
CPallini18-Apr-08 0:30
mveCPallini18-Apr-08 0:30 
GeneralRe: OT Pin
George_George18-Apr-08 0:34
George_George18-Apr-08 0:34 
GeneralRe: OT Pin
CPallini18-Apr-08 0:53
mveCPallini18-Apr-08 0:53 
GeneralRe: OT Pin
George_George18-Apr-08 0:59
George_George18-Apr-08 0:59 
GeneralRe: any smarter ways to design this tree structure Pin
Matthew Faithfull18-Apr-08 0:58
Matthew Faithfull18-Apr-08 0:58 
GeneralRe: any smarter ways to design this tree structure Pin
George_George18-Apr-08 1:17
George_George18-Apr-08 1:17 
GeneralRe: any smarter ways to design this tree structure Pin
Matthew Faithfull18-Apr-08 6:42
Matthew Faithfull18-Apr-08 6:42 
GeneralRe: any smarter ways to design this tree structure Pin
George_George18-Apr-08 22:44
George_George18-Apr-08 22:44 
Thanks Matthew,


Your insights give me more ideas. Now I make the algorithm in details and want to let you review and
comment. Sorry, I do not adope 100% of your ideas. Smile | :)

1. Any node can have multiple childs, for example, foo has goo and zoo as two childs;

2. If each child has its special money management system, I will put a special pointer to the money object, or else, it will share the same money source from parent (its money pointer points to the same money object of that of parent);

3. In the money object, it contains the pool of nodes which gets money from the object and how much each node gets from the money object, from total amount of money of the money object, and the consumed money by all the nodes, we can make sure how much remains;

4. When checking/assigning remaining budget for a specific child, traverse from the parent (root) of the tree to the specific child, and check its "money pointer" to see the remaining amount of money.


regards,
George
GeneralRe: any smarter ways to design this tree structure Pin
Matthew Faithfull19-Apr-08 11:41
Matthew Faithfull19-Apr-08 11:41 
GeneralRe: any smarter ways to design this tree structure Pin
George_George19-Apr-08 21:25
George_George19-Apr-08 21:25 
GeneralRe: any smarter ways to design this tree structure Pin
Matthew Faithfull20-Apr-08 5:31
Matthew Faithfull20-Apr-08 5:31 
GeneralRe: any smarter ways to design this tree structure Pin
George_George20-Apr-08 17:34
George_George20-Apr-08 17:34 

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.