New Posts  All Forums:Forum Nav:

C++ Genealogical Tree

post #1 of 7
Thread Starter 
So, I have the following classes
CDate- for date of birth
CPerson - name,surname, sex, date of birth
CListOfPersons - list of the above

I need to use a class CGeneTree to construct the genealogical tree of a person.
The app must be able to determine if 2 persons are related to each other and what that relation is.

My problem is that I have no clue how the CGeneTree should be structured or built
I don't need code, i just need the basic algorithm.
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
post #2 of 7
Thread Starter 
No one?
C'mon, there must be some smart guys around here
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
post #3 of 7
Quote:
Originally Posted by Am3oo View Post
No one?
C'mon, there must be some smart guys around here
Not in the middle of the night. You're generally supposed to wait 24 hours before bumping your threads.

How are you storing the information about who is related to whom and how?
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #4 of 7
I haven't looked at C++ since high school and it's far too early in the day for me to have flashbacks about it.
post #5 of 7
Thread Starter 
i can only point the sons and parents of 1 Person (with CListOfPersons).
At the moment I don't care about limitations to only allow 2 parents, or regarding their gender.

EDIT: sry about the bumping
Edited by Am3oo - 12/13/08 at 5:17am
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
post #6 of 7
Quote:
Originally Posted by Am3oo View Post
i can only point the sons and parents of 1 Person (with CListOfPersons).
Is that a requirement or the current state of your design?
post #7 of 7
Thread Starter 
It was a requirement. I ended up delivering a somewhat ambiguous school project.
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
El Cheapo
(10 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5820k Asrock x99 Extreme6 Sapphire R9 285 Compact OC Crucial 8GB 2400Mhz 
Hard DriveCoolingMonitorPower
Intel 520 120GB SSD Cooler Master Nepton 240M LG 23MP65HQ-P  Super Flower Leadex Gold 750W 
CaseMouse
NZXT S340 SS Kinzu V2 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming