Beispiel #1
0
    static void Main(string[] args)
    {
        int    n;
        int    rik;
        string nams;
        People max = new People();

        n = Convert.ToInt32(Console.ReadLine());

        Family a = new Family();

        a.Sizer(n);

        for (int i = 0; i < n; i++)
        {
            rik  = Convert.ToInt32(Console.ReadLine());
            nams = Console.ReadLine();
            a.AddMembr(rik, nams, i);
        }

        Console.WriteLine();
        max = a.FindMaxAge();
        Console.WriteLine();
        Console.WriteLine($"{max.Age} {max.Name}");
        Console.ReadKey();
    }