static void Main(string[] args) { int P; string[] name; double[] pay; string[] posada; string[] viddil; string[] email; string[] age; Ros sort = new Ros(); Console.WriteLine("Input N size: "); P = Convert.ToInt32(Console.ReadLine()); sort.Size(P); name = new string[P]; pay = new double[P]; posada = new string[P]; viddil = new string[P]; email = new string[P]; age = new string[P]; Console.WriteLine(""); for (int i = 0; i < P; i++) { name[i] = Console.ReadLine(); pay[i] = Convert.ToDouble(Console.ReadLine()); posada[i] = Console.ReadLine(); viddil[i] = Console.ReadLine(); email[i] = Console.ReadLine(); age[i] = Console.ReadLine(); sort.Add(name[i], pay[i], posada[i], viddil[i], email[i], age[i], i); Console.WriteLine(""); } sort.Sort(); sort.Make(); Console.ReadKey(); }