static void Ex6Lab9() { ContList <string> contList = new ContList <string>(); Lab9Manager lab9Manager = new Lab9Manager(); char k = 'j'; while (k != '0') { Console.WriteLine("\r\n1 - первая часть 2 - вторая часть, 0 - выход"); k = Console.ReadKey().KeyChar; Console.WriteLine(); if (k == '1') { lab9Manager.Ex6(new string[] { "bob", "good", "kok" }, new string[] { "kok", "good", "bob", "k" }); } else if (k == '2') { contList.Compare(new List <string> { "bob", "good", "kok" }, new List <string> { "kok", "good", "bob", "k" }); } } }
static void Ex2Lab9() { Console.WriteLine("\r\nВведите цифровое выражение"); string text = Console.ReadLine(); if (text.ToLower() == "true") { text = "(2+3)(1+6)(((2-3)(5+1)))2(3)(1 + 6(7 + 2))((2 - 3)(5 + 1))2(3 + 5(((6))))"; Console.WriteLine(text); } else if (text.ToLower() == "false") { text = "((2+3)(4-1)))2(3 + 5(((6))"; Console.WriteLine(text); } Lab9Manager lab9Manager = new Lab9Manager(); lab9Manager.Ex2(text); }
static void Ex1Lab9() { Lab9Manager lab9Manager = new Lab9Manager(); char k = 'j'; while (k != '0') { Console.WriteLine("\r\n1 - первая часть 2 - вторая часть, 0 - выход"); k = Console.ReadKey().KeyChar; Console.WriteLine(); if (k == '1') { lab9Manager.Ex1F(); } else if (k == '2') { lab9Manager.Ex1S(); } } }
static void Ex5Lab9() { Lab9Manager lab9Manager = new Lab9Manager(); lab9Manager.Ex5(); }