static void Main(string[] args) { BubbleSortFunction tmp = new BubbleSortFunction(); int[] XX = tmp.input(); tmp.process(XX); tmp.output(XX); Console.ReadLine(); }
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); }
static void Main(string[] args) { BubbleSortFunction n = new BubbleSortFunction(); int[] a = n.input(); n.process(a); n.output(a); Console.ReadKey(); }
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(); }
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(); }
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(); }