示例#1
0
        static void Main()
        {
            PriorityDocumentManager pdm = new PriorityDocumentManager();
              pdm.AddDocument(new Document("one", "Sample", 8));
              pdm.AddDocument(new Document("two", "Sample", 3));
              pdm.AddDocument(new Document("three", "Sample", 4));
              pdm.AddDocument(new Document("four", "Sample", 8));
              pdm.AddDocument(new Document("five", "Sample", 1));
              pdm.AddDocument(new Document("six", "Sample", 9));
              pdm.AddDocument(new Document("seven", "Sample", 1));
              pdm.AddDocument(new Document("eight", "Sample", 1));

              pdm.DisplayAllNodes();
            Console.ReadKey();
        }
示例#2
0
文件: Program.cs 项目: zilo312/aa
        static void Main()
        {
            PriorityDocumentManager pdm = new PriorityDocumentManager();

            pdm.AddDocument(new Document("one", "Sample", 8));
            pdm.AddDocument(new Document("two", "Sample", 3));
            pdm.AddDocument(new Document("three", "Sample", 4));
            pdm.AddDocument(new Document("four", "Sample", 8));
            pdm.AddDocument(new Document("five", "Sample", 1));
            pdm.AddDocument(new Document("six", "Sample", 9));
            pdm.AddDocument(new Document("seven", "Sample", 1));
            pdm.AddDocument(new Document("eight", "Sample", 1));

            pdm.DisplayAllNodes();
        }