Esempio n. 1
0
        public static void Main(string[] args)
        {
            Abbreviations abbreviations = new Abbreviations();

            abbreviations.AddAbbreviation("e.g", "for example");
            abbreviations.AddAbbreviation("etc.", "and so on");
            abbreviations.AddAbbreviation("i.e", "more precisely");

            string text = "e.g etc. i.e lol";

            foreach (string part in text.Split(" "))
            {
                Console.WriteLine(abbreviations.FindExplanationFor(part));
            }
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            //BEGIN SOLUTION
            Abbreviations abbreviations = new Abbreviations();

            abbreviations.AddAbbreviation("e.g", "for example");
            abbreviations.AddAbbreviation("etc.", "and so on");
            abbreviations.AddAbbreviation("i.e", "more precisely");

            string text = "e.g i.e etc. lol";

            foreach (string part in text.Split(" "))
            {
                Console.WriteLine(abbreviations.FindExplanationFor(part));
            }
            //END SOLUTION
            //STUB: Console.WriteLine("Hello World!");
        }