Beispiel #1
0
        static void Main()
        {
            // Create the evaluator
            DirectionalEvaluator evaluator = new DirectionalEvaluator();

            // This should output "London"...
            Console.WriteLine(evaluator.Evaluate("london edinburgh manchester southerly"));

            // This should output "Aberdeen"...
            Console.WriteLine(evaluator.Evaluate
                                  ("london edinburgh manchester southerly aberdeen westerly"));

            Console.Read();
        }
Beispiel #2
0
        static void Main()
        {
            // Create the evaluator
            DirectionalEvaluator evaluator = new DirectionalEvaluator();

            // This should output "London"...
            Console.WriteLine(evaluator.Evaluate
						("london edinburgh manchester southerly"));

            // This should output "Aberdeen"...
            Console.WriteLine(evaluator.Evaluate
						("london edinburgh manchester southerly aberdeen westerly"));

            Console.Read();
        }