コード例 #1
0
        static void Main(string[] args)
        {
            string            personInput       = Console.ReadLine();
            FamilyTreeBuilder familyTreeBuilder = new FamilyTreeBuilder(personInput);

            string command;

            while ((command = Console.ReadLine()) != "End")
            {
                familyTreeBuilder.ParseInput(command);
            }

            familyTreeBuilder.PrintPersonTree();
        }