Пример #1
0
        static void Main(string[] args)
        {
            ReadWord rw = new ReadWord();
            //测试readWord:
            //rw.readList2();
            //测试LCS:
            //LCS<string> strLCS = new LCS<string>(strList1, strList2);
            //strLCS.Demo();
            //string[] str = rw.readList1().ToArray();
            //string[] str1 = rw.readList2().ToArray();

            bool a = true;

            while (a)
            {
                Console.WriteLine("                                              ");
                Console.WriteLine("=================请选择 判断==================");
                Console.WriteLine("**********************************************");
                Console.WriteLine("* 1: 答案1.docx *");
                Console.WriteLine("* 2: 答案2.docx *");
                Console.WriteLine("* 3: 答案3.docx *");
                Console.WriteLine("* 4: 原题.docx      *");
                Console.WriteLine("**********************************************");
                Console.WriteLine("input:");
                string s1 = Console.ReadLine();
                if (s1.Equals("1"))
                {
                    LCS <string> strLCS = new LCS <string>(rw.readList(), rw.readList1());
                    strLCS.Demo();
                }
                else if (s1.Equals("2"))
                {
                    LCS <string> strLCS = new LCS <string>(rw.readList(), rw.readList2());
                    strLCS.Demo();
                }
                else if (s1.Equals("3"))
                {
                    LCS <string> strLCS = new LCS <string>(rw.readList(), rw.readList3());
                    strLCS.Demo();
                }
                else if (s1.Equals("4"))
                {
                    LCS <string> strLCS = new LCS <string>(rw.readList(), rw.readList4());
                    strLCS.Demo();
                }
                else
                {
                    Console.WriteLine("Wrong!!!It's:{0}", s1);
                    Console.WriteLine("Input Any Key Out");
                    a = false;
                }

                Console.ReadKey();
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            ReadWord rwnb = new ReadWord();

            Console.WriteLine("****************************文档题目试题库比对系统******************************");
            Console.WriteLine("请选择标号1、2、3、4");
            // int c = 0;
            string s1 = Console.ReadLine();

            // c = int.Parse(s1);

            if (s1.Equals("1"))
            {
                LCS <string> strLCS1 = new LCS <string>(rwnb.ReadList(), rwnb.ReadList1());
                strLCS1.Demo();
            }
            else if (s1.Equals("2"))
            {
                LCS <string> strLCS2 = new LCS <string>(rwnb.ReadList(), rwnb.ReadList2());
                strLCS2.Demo();
            }
            else if (s1.Equals("3"))
            {
                LCS <string> strLCS3 = new LCS <string>(rwnb.ReadList(), rwnb.ReadList3());
                strLCS3.Demo();
            }
            else if ((s1.Equals("4")))
            {
                LCS <string> strLCS4 = new LCS <string>(rwnb.ReadList(), rwnb.ReadList4());
                strLCS4.Demo();
            }
            else
            {
                Console.WriteLine("error!{0}", s1);
                Console.WriteLine("Please input Any Key Out and go operating!");
            }

            Console.ReadKey();
        }
Пример #3
0
        static void Main(string[] args)
        {
            ReadWord rw = new ReadWord();
            bool     a  = true;

            while (a)
            {
                Console.WriteLine("请输入1,2,3:");
                Console.WriteLine("输入1: 对国考_标准答案1.docx进行检测");
                Console.WriteLine("输入2: 对国考_标准答案2.docx进行检测");
                Console.WriteLine("输入3: 对国考_标准答案3.docx进行检测");
                Console.WriteLine("请输入对应数字:");
                string s1 = Console.ReadLine();
                if (s1.Equals("1"))
                {
                    LCS <string> strLCS = new LCS <string>(rw.readList(), rw.readList1());
                    strLCS.Demo();
                }
                else if (s1.Equals("2"))
                {
                    LCS <string> strLCS = new LCS <string>(rw.readList(), rw.readList2());
                    strLCS.Demo();
                }
                else if (s1.Equals("3"))
                {
                    LCS <string> strLCS = new LCS <string>(rw.readList(), rw.readList3());
                    strLCS.Demo();
                }
                else
                {
                    Console.WriteLine("错误!请输入1,2,3其中任意一个", s1);
                    Console.WriteLine("按任意键退出");
                    a = false;
                }

                Console.ReadKey();
            }
        }