• 大小: 354KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: C#
  • 标签: c#  

资源简介

网站的一套自动排课系统,算法已经都实现。可以 运行,是学生学习的一个好资源

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.xml;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
namespace PaiKe
{
    class Program
    {
        static void Main(string[] args)
        {
           PaiKe paike = new PaiKe();
           paike.Test1();
                Console.ReadLine();
        }
    }
    class ClassUnit
    {
        static List CourseList = new List();
        public const int WeekDay = 5;
        public const int CourseCount = 6;
        public int ID;
        public int[] XuLie = new int[WeekDay * ClassUnit.CourseCount];
        public ClassUnit(int id int[] xulie)
        {
            ID = id;
            XuLie = xulie;
        }
    }
    [Serializable()]
    class Course
    {
        static int Seed = 0;
        public int ID;
        public int ClassID;
        public string TeacherName;
        public int TeacherID;
        public string Name;
        public int Priority = 0;
        public Course(int id int techerid string name string teacherName int priority)
        {
            Seed++;
            Name = name;
            ID = id;
            TeacherID = id;// techerid;
            TeacherName = teacherName;
            Priority = priority;
        }
    }
    class CoursePriority
    {         
      public static int[] Priority=new int[ClassUnit.CourseCount]{554421}; 
    }
    class PaiKe
    {
        Random rnd = new Random();
        ClassUnit tClassUnit;// = new ClassUnit(1);            
        List ClassList = new List();
        List CourseList = new List();
        //---------------惩罚值列表--------------
        //冲突
        const int ChongTu = 200;
        //一天有2节相同的课
        const int OneDayForTowCourse = 150;
        //连续2天有2节相同课
        const int TowDayForTowCourse = 40;
        //课程优先级单位值
        const int CoursePr = 15;
        void Init()
        {
            int[] Tshuzu ;
            Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay] 
            {
               111112
               222233
               333444
               556668
               8997710
            };
            tClassUnit = new ClassUnit(1 Tshuzu);
            ClassList.Add(tClassUnit);

            Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay] 
            {
               111112
               222233
               333444
               556668
               8997710
            };
            tClassUnit = new ClassUnit(1 Tshuzu);
            ClassList.Add(tClassUnit);
            Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay] 
            {
               111111111112
               121212121313
               131313141414
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1944  2007-02-27 11:16  PaiKe\Backup\PaiKe\PaiKe.csproj

     文件      18998  2007-03-01 18:41  PaiKe\Backup\PaiKe\Program.cs

     文件       1157  2007-02-27 11:16  PaiKe\Backup\PaiKe\Properties\AssemblyInfo.cs

     文件       1382  2007-02-27 21:42  PaiKe\Backup\PaiKe.sln

    ..A..H.     30208  2007-04-14 11:04  PaiKe\Backup\PaiKe.v12.suo

     文件        553  2007-04-14 11:03  PaiKe\Backup\WinPaike\About.cs

     文件       2096  2007-04-14 11:01  PaiKe\Backup\WinPaike\About.Designer.cs

     文件       5814  2007-04-14 11:01  PaiKe\Backup\WinPaike\About.resx

     文件        754  2007-02-28 09:43  PaiKe\Backup\WinPaike\ClassUnit.cs

     文件       1719  2007-02-28 10:17  PaiKe\Backup\WinPaike\CommonClass.cs

     文件        639  2007-02-28 10:11  PaiKe\Backup\WinPaike\Course.cs

     文件        437  2007-02-28 09:57  PaiKe\Backup\WinPaike\CourseInClass.cs

     文件      14926  2007-03-02 00:19  PaiKe\Backup\WinPaike\PaiKe.cs

     文件      16810  2007-03-01 16:07  PaiKe\Backup\WinPaike\PaiKeCopy.cs

     文件        469  2007-02-28 10:56  PaiKe\Backup\WinPaike\Program.cs

     文件       1164  2007-02-27 21:36  PaiKe\Backup\WinPaike\Properties\AssemblyInfo.cs

     文件       2870  2007-02-27 21:36  PaiKe\Backup\WinPaike\Properties\Resources.Designer.cs

     文件       5612  2007-02-27 21:36  PaiKe\Backup\WinPaike\Properties\Resources.resx

     文件       1091  2007-02-27 21:36  PaiKe\Backup\WinPaike\Properties\Settings.Designer.cs

     文件        249  2007-02-27 21:36  PaiKe\Backup\WinPaike\Properties\Settings.settings

     文件       3290  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinClass.cs

     文件       6317  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinClass.Designer.cs

     文件       9538  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinClass.resx

     文件       4660  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinCourse.cs

     文件       6503  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinCourse.Designer.cs

     文件       8244  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinCourse.resx

     文件       5240  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinCourseInClass.cs

     文件       5157  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinCourseInClass.Designer.cs

     文件       8450  2007-02-28 19:57  PaiKe\Backup\WinPaike\WinCourseInClass.resx

     文件       1254  2007-04-14 11:03  PaiKe\Backup\WinPaike\WinMain.cs

............此处省略134个文件信息

评论

共有 条评论