diff --git a/GUI/background.jpg b/GUI/background.jpg deleted file mode 100644 index b23ab36..0000000 Binary files a/GUI/background.jpg and /dev/null differ diff --git a/ProgLab1.csproj b/ProgLab1.csproj index 2cfef70..8d2b080 100644 --- a/ProgLab1.csproj +++ b/ProgLab1.csproj @@ -8,10 +8,4 @@ True - - - Always - - - diff --git a/Subprograms/ArraySortDemo.cs b/Subprograms/ArraySortDemo.cs deleted file mode 100644 index 10c0586..0000000 --- a/Subprograms/ArraySortDemo.cs +++ /dev/null @@ -1,71 +0,0 @@ -using laba3.Core; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using static System.Runtime.InteropServices.JavaScript.JSType; - -namespace laba3.Subprograms -{ - /// - /// Compare computing time of 2 sorting methods; - /// Gnome sort and Shell sort; - /// - internal class ArraySortDemo - { - private long time1; - private long time2; - - /// - /// Get values from keyboard, init arrays, start computing, print time; - /// Console will be clean!; - /// - public void Run() - { - Utils.Arrays array1; - Utils.Arrays array2; - int size; - size = ReadArrayLen(); - array1 = new Utils.Arrays(size, 100); - array2 = new Utils.Arrays(array1); - - Console.WriteLine("Для Массива 1 будет использована \"гномья сортировка\""); - Console.WriteLine("Для Массива 2 будет использована \"сортировка шелла\""); - - if (size <= 10) - array1.print("с начальными значениями"); - else - Console.WriteLine("Массивы не могут быть выведены на экран так как их размер больше 10"); - Console.WriteLine("Сортируем..."); - - time1 = array1.gnomeSort(); - time2 = array2.shellSort(); - - Console.WriteLine("Готово!"); - if (size <= 10) - { - array1.print("после гномьей сортировки"); - array2.print("после сортировки шелла "); - } - - Console.WriteLine($"Для сортировки 1 потребовалось {time1}мс"); - Console.WriteLine($"Для сортировки 2 потребовалось {time2}мс"); - } - - private int ReadArrayLen() - { - int size; - do - { - size = Utils.ReadInt("Размер массива для сортировки"); - Console.Clear(); - if (size < 1) - Console.WriteLine("Размер не может быть меньше 1!"); - } while (size < 1); - return size; - } - } -} \ No newline at end of file