コード例 #1
0
ファイル: Program.cs プロジェクト: Selean79/Vasilyev
        static void Main(string[] args)
        {
            Shed shed = new Shed();

            Console.WriteLine(shed.GetObjectNumber());
            Shed shed1 = new Shed();

            Console.WriteLine(shed1.GetObjectNumber());

            Console.ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Shed shed = new Shed();

            shed.Width      = 2;
            shed.Height     = 1;
            shed.Lengthwise = 3;

            shed.ExpandSize(2, 4, 6);
            Console.WriteLine("Новая ширина: " + shed.Width);

            int vx = 2;
            int vy = 4;
            int vz = 6;

            shed.ExpandAndGetSize(ref vx, ref vy, ref vz);
            Console.WriteLine("Размеры 1: " + vx + " " + vy + " " + vz);

            shed.ExpandAndGetSize2(10, out vx, out vy, out vz);
            Console.WriteLine("Размеры 2: " + vx + " " + vy + " " + vz);

            Console.ReadLine();
        }