Пример #1
0
        static void Main(string[] args)
        {
            Translator tr    = new Translator(4);
            Words      word1 = new Words("cat", "kot");
            Words      word2 = new Words("dog", "sobaka");
            Words      word3 = new Words("parrot", "papugaj");
            Words      word4 = new Words("cow", "Korowa");

            tr.AddWord(word1);
            tr.AddWord(word2);
            tr.AddWord(word3);
            tr.AddWord(word4);

            Console.WriteLine(tr[1]);
            Console.WriteLine(tr["cat"]);
            Console.WriteLine(tr["dog"]);
            Console.WriteLine(tr["dssog"]);
            Console.WriteLine(tr[11]);
            Console.ReadKey();
        }