Beispiel #1
0
        static void Main(string[] args)
        {
            LimitsOfArray limits = new LimitsOfArray();

            int max = 0;
            int min = 0;

            limits.GetMaxAndMinFromArray(5, new int[] { 1, 2, 3, 4, 5 }, ref max, ref min);

            Console.WriteLine(max);
            Console.WriteLine(min);
        }
Beispiel #2
0
        public SystemTests()
        {
            _arraySetOne = new OneDimensionalArray();
            _arraySetOne.SetLength(7);
            _arraySetOne.SetOneDimensionalArray(new[] { 12, -12, 57, 32, -321, 13, 0 });

            _arraySetTwo = new OneDimensionalArray();
            _arraySetTwo.SetLength(7);
            _arraySetTwo.SetOneDimensionalArray(new[] { 12, -12, 31, 15, 16, 7, -32 });

            _searchProcessor = new SearchProcessor();
            _limitsOfArray   = new LimitsOfArray();
        }