static void Main(string[] args) { Person root = Familytree.BuildTree(); Person found = Familytree.Find(root); WriteLine(found); }
static void Main(string[] args) { Person root = Familytree.BuildTree(); Person found = Familytree.Find(root); WriteLine(found.LastName + " " + found.FirstName); }
static void Main(string[] args) { Person root = Familytree.BuildTree(); Person found = Familytree.Find(root); //Person age = DateTime.Now.Year - Find.DateOfBirth.Year; WriteLine(root); WriteLine(found.FirstName + " " + found.LastName + " " + found.DateOfBirth); //WriteLine(found.Dad.FirstName + " " + found.Dad.LastName); //WriteLine(found.Mom.FirstName + " " + found.Mom.LastName); }
static void Main(string[] args) { Person root = Familytree.BuildTree(); Person found = Familytree.Find(root); if (found != null) { WriteLine(found.FirstName); } else { WriteLine("Keine Person in dieser Alterspanne gefunden"); } }