Пример #1
0
        static void Main(string[] args)
        {
            //string s = "我现在要提交代码到我的github版本库中。";
            //string s1 = "我又来提交测试了。aaaaaa";
            //string s2 = "不在宿舍里做的修改。sss ";
            //Console.WriteLine("hello world.");
            //Console.ReadKey();

            Paradigm demo = new Paradigm();

            int[] arr = new int[] { 1, 5, 6, 7, 9, 2, 4 };
            demo.BubbleSort <int>(arr);
            string str = string.Empty;

            for (int i = 0; i < arr.Length; i++)
            {
                str += arr[i] + ",";
            }
            Console.WriteLine("Current array value is {0}", str.Trim(','));
            Paradigm demomoive = new Paradigm();

            Moive[] moiveArr = new Moive[]
            {
                new Moive("少林寺", 4M),
                new Moive("华城", 4M),
                new Moive("上海滩", 5M),
            };
            demomoive.BubbleSort <Moive>(moiveArr);

            Console.ReadKey();
        }
        // GET: Moive/Random
        public ActionResult GenerateRandomFilm()
        {
            var moive = new Moive()
            {
                name = "Default", ID = 1, price = 30
            };

            return(View(moive));
        }