예제 #1
0
        static void Main(string[] args)
        {
            BubbleSortFunction iput = new BubbleSortFunction();  // if not call class is not call function plss remember

            int[] a = iput.input();
            iput.process(a);
            iput.output(a);
        }
예제 #2
0
 static void Main(string[] args)
 {
     BubbleSortFunction tmp = new BubbleSortFunction();
     int[] XX = tmp.input();
     tmp.process(XX);
     tmp.output(XX);
     Console.ReadLine();
 }
예제 #3
0
 static void Main(string[] args)
 {
     BubbleSortFunction s = new BubbleSortFunction();
     int[] a = s.inputFunc();
     s.processFunc(a);
     s.outputFunc(a);
     Console.ReadKey();
 }
예제 #4
0
파일: Program.cs 프로젝트: Taksaporn/week-1
        static void Main(string[] args)
        {
            BubbleSortFunction  iput = new BubbleSortFunction(); // if not call class is not call function plss remember

            int[] a = iput.input();
            iput.process(a);
            iput.output(a);
        }
예제 #5
0
 static void Main(string[] args)
 {
     BubbleSortFunction n = new BubbleSortFunction();
     int[] a = n.input();
     n.process(a);
     n.output(a);
     Console.ReadKey();
 }
예제 #6
0
        static void Main(string[] args)
        {
            BubbleSortFunction s = new BubbleSortFunction();

            int[] a = s.inputF();
            s.processF(a);
            s.outputF(a);
            Console.ReadKey();
        }
예제 #7
0
        static void Main(string[] args)
        {
            BubbleSortFunction n = new BubbleSortFunction();

            int[] a = n.input();
            n.process(a);
            n.output(a);
            Console.ReadKey();
        }
예제 #8
0
        static void Main(string[] args)
        {
            BubbleSortFunction tmp = new BubbleSortFunction();

            int[] XX = tmp.input();
            tmp.process(XX);
            tmp.output(XX);
            Console.ReadLine();
        }
예제 #9
0
파일: Program.cs 프로젝트: JJanjao/week-1
        static void Main(string[] args)
        {
            BubbleSortFunction a = new BubbleSortFunction();

               int size;
            Console.WriteLine("Put amount of number ");
            size = Convert.ToInt16(Console.ReadLine()); // GEt input command line

            int[] array = a.getInput(size);
            a.Process(array);
            a.output(array);

                 Console.ReadKey();
        }
예제 #10
0
        static void Main(string[] args)
        {
            BubbleSortFunction BS = new BubbleSortFunction();

            // input
            //int[] input = { 4, 5, 2, 8, 9, 1, 2, 4, 3, 1 };
            int[] arrinput = BS.input();

            // process
            BS.process(arrinput);

            // output
            BS.output(arrinput);

            Console.ReadKey();
        }
예제 #11
0
파일: Program.cs 프로젝트: nrtdemo/week-1
        static void Main(string[] args)
        {
            BubbleSortFunction BS = new BubbleSortFunction();

            // input
            //int[] input = { 4, 5, 2, 8, 9, 1, 2, 4, 3, 1 };
            int[] arrinput = BS.input();

            // process
            BS.process(arrinput);

            // output
            BS.output(arrinput);

            Console.ReadKey();
        }
예제 #12
0
        static void Main(string[] args)
        {
            BubbleSortFunction a = new BubbleSortFunction();

            int size;

            Console.WriteLine("Put amount of number ");
            size = Convert.ToInt16(Console.ReadLine()); // GEt input command line

            int[] array = a.getInput(size);
            a.Process(array);
            a.output(array);



            Console.ReadKey();
        }
예제 #13
0
        static void Main(string[] args)
        {
            BubbleSortFunction a = new BubbleSortFunction();

            //bool flag = true;

            // input
            //int[] input = { 4, 5, 2, 8, 9, 1, 2, 4, 3, 1 };

            // process

            /*while (flag)
             * {
             *  flag = false;
             *  for (int i = 0; i != input.Length - 1; i++)
             *  {
             *      if (input[i] > input[i + 1])
             *      {
             *          int temp = input[i];
             *          input[i] = input[i + 1];
             *          input[i + 1] = temp;
             *          flag = true;
             *      }
             *  }
             * }*/

            // output

            /*for (int i = 0; i != input.Length; i++)
             * {
             *  Console.Write(input[i]);
             *  Console.Write(" ");
             * }*/



            int [] inp = a.input();
            a.process(inp);
            a.output(inp);
            Console.ReadKey();
        }
예제 #14
0
        static void Main(string[] args)
        {
            BubbleSortFunction a = new BubbleSortFunction();
            //bool flag = true;

            // input
            //int[] input = { 4, 5, 2, 8, 9, 1, 2, 4, 3, 1 };

            // process
            /*while (flag)
            {
                flag = false;
                for (int i = 0; i != input.Length - 1; i++)
                {
                    if (input[i] > input[i + 1])
                    {
                        int temp = input[i];
                        input[i] = input[i + 1];
                        input[i + 1] = temp;
                        flag = true;
                    }
                }
            }*/

            // output
            /*for (int i = 0; i != input.Length; i++)
            {
                Console.Write(input[i]);
                Console.Write(" ");
            }*/

            int [] inp = a.input();
            a.process(inp);
            a.output(inp);
            Console.ReadKey();
        }