示例#1
0
        static void Main()
        {
            string s = Console.ReadLine();
            Parser p = new Parser();

            p.main_calculator(s);
        }
示例#2
0
        static void Main()
        {
            bool _right = true;

            while (_right)
            {
                Console.WriteLine("please enter string\nfor example 2+3-4 or\nplease enter 1 for exit");
                string s = Console.ReadLine();
                if (s == "1")
                {
                    return;
                }
                Parser p = new Parser();
                Console.WriteLine(p.main_calculator(s).ToString());
            }
        }