Beispiel #1
0
        public static void Test()
        {
            BasicID basicID   = new BasicID();
            int     totalSize = 1000000;

            int[]  tempIndex = new int[totalSize];
            Random random    = new Random();

            for (int i = 0; i < totalSize; i++)
            {
                int value = (int)(random.NextDouble() * totalSize);
                tempIndex[i] = Math.Abs(value);
            }
            int min = basicID.MinFreeList(tempIndex);

            Console.Write("  The min is:  " + min);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            // The code provided will print ‘Hello World’ to the console.
            // Press Ctrl+F5 (or go to Debug > Start Without Debugging) to run your app.


            //Chapter1 chapter1 = new Chapter1();
            // chapter1.Test();

            //CArray.Test();
            // CStack.SimpleCalculator();
            BasicID.Test();

            Console.ReadKey();

            // Go to http://aka.ms/dotnet-get-started-console to continue learning how to build a console app!
        }