亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? srs.cs

?? 集學生管理系統、學生選課系統、老師管理系統與一身 不錯的
?? CS
字號:
// SRS.cs - Chapter 14 version.

// Copyright 2004 by Jacquie Barker and Grant Palmer - all rights reserved.

// A main driver for the command-line driven version of the SRS.

using System;
using System.Collections;

public class SRS {
  // We can effectively create "global" data by declaring
  // PUBLIC STATIC fields in the main class.  

  // Entry points/"roots" for getting at objects.  

  public static ScheduleOfClasses scheduleOfClasses = 
                         new ScheduleOfClasses("SP2004");
	
  // Note that we could encapsulate the rest of these, the way that we 
  // did for the ScheduleOfClasses ...

  public static ArrayList faculty; // of Professors
  public static ArrayList studentBody; // of Students
  public static ArrayList courseCatalog; // of Courses

  static void Main() {
    Professor p1, p2, p3;
    Student s1, s2, s3;
    Course c1, c2, c3, c4, c5;
    Section sec1, sec2, sec3, sec4, sec5, sec6, sec7;

// Create various objects by calling the appropriate 
// constructors.  (We'd normally be reading in such data
// from a database or file ...)

// -----------
// Professors.
// -----------

    p1 = new Professor("Jacquie Barker", "123-45-6789", 
                       "Adjunct Professor", "Information Technology");		
    p2 = new Professor("John Smith", "567-81-2345",
                       "Full Professor", "Chemistry");		
    p3 = new Professor("Jackie Chan", "987-65-4321",
                       "Full Professor", "Physical Education");		

    // Add these to the appropriate ArrayList.

    faculty = new ArrayList();
    faculty.Add(p1);
    faculty.Add(p2);
    faculty.Add(p3);

    // ---------
    // Students.
    // ---------
		
    s1 = new Student("Joe Blow", "111-11-1111", "Math", "M.S.");

    s2 = new Student("Gerson Lopez", "222-22-2222", 
                     "Information Technology", "Ph. D.");

    s3 = new Student("Mary Smith", "333-33-3333", "Physics", "B.S.");

    // Add these to the appropriate ArrayList.

    studentBody = new ArrayList();
    studentBody.Add(s1);
    studentBody.Add(s2);
    studentBody.Add(s3);

    // --------
    // Courses.
    // --------
		
    c1 = new Course("CMP101","Beginning Computer Technology", 3.0);
    c2 = new Course("OBJ101","Object Methods for Software Development", 3.0);
    c3 = new Course("CMP283","Higher Level Languages (C#)", 3.0);
    c4 = new Course("CMP999","Living Brain Computers", 3.0);
    c5 = new Course("ART101","Beginning Basketweaving", 3.0);

    // Add these to the appropriate ArrayList.

    courseCatalog = new ArrayList();
    courseCatalog.Add(c1);
    courseCatalog.Add(c2);
    courseCatalog.Add(c3);
    courseCatalog.Add(c4);
    courseCatalog.Add(c5);

    // Establish some prerequisites (c1 => c2 => c3 => c4).

    c2.AddPrerequisite(c1);
    c3.AddPrerequisite(c2);
    c4.AddPrerequisite(c3); 

    // ---------
    // Sections.
    // ---------

    // Schedule sections of each Course by calling the
    // scheduleSection method of Course (which internally
    // invokes the Section constructor). 

    sec1 = c1.ScheduleSection('M', "8:10 - 10:00 PM", "GOVT101", 30);
    sec2 = c1.ScheduleSection('W', "6:10 - 8:00 PM", "GOVT202", 30);
    sec3 = c2.ScheduleSection('R', "4:10 - 6:00 PM", "GOVT105", 25);
    sec4 = c2.ScheduleSection('T', "6:10 - 8:00 PM", "SCI330", 25);
    sec5 = c3.ScheduleSection('M', "6:10 - 8:00 PM", "GOVT101", 20);
    sec6 = c4.ScheduleSection('R', "4:10 - 6:00 PM", "SCI241", 15);
    sec7 = c5.ScheduleSection('M', "4:10 - 6:00 PM", "ARTS25", 40);
		
    // Add these to the Schedule of Classes.

    scheduleOfClasses.AddSection(sec1);
    scheduleOfClasses.AddSection(sec2);
    scheduleOfClasses.AddSection(sec3);
    scheduleOfClasses.AddSection(sec4);
    scheduleOfClasses.AddSection(sec5);
    scheduleOfClasses.AddSection(sec6);
    scheduleOfClasses.AddSection(sec7);

    // Recruit a professor to teach each of the sections.

    p3.AgreeToTeach(sec1);
    p2.AgreeToTeach(sec2);
    p1.AgreeToTeach(sec3);
    p3.AgreeToTeach(sec4);
    p1.AgreeToTeach(sec5);
    p2.AgreeToTeach(sec6);
    p3.AgreeToTeach(sec7);

    Console.WriteLine("Student registration has begun!");
    Console.WriteLine("");

    // Students drop/add courses.

    Console.WriteLine("Student "+s1.Name+ 
                      " is attempting to enroll in "+
                      sec1.ToString());

    int status = sec1.Enroll(s1);

    // Note the use of a special method to interpret
    // and display the outcome of this enrollment request.
    // (We could have included the code in-line here, but
    // since (a) it is rather complex and (b) it will need
    // to be repeated for all subsequent enrollment requests
    // below, it made sense to turn it into a reusable method
    // instead.)

    ReportStatus(status);

    // Try enrolling the same Student in a different Section
    // of the SAME Course!

    Console.WriteLine("Student "+s1.Name+ 
                      " is attempting to enroll in "+
                      sec2.ToString());
    status = sec2.Enroll(s1);
    ReportStatus(status);

    Console.WriteLine("Student "+s2.Name+ 
                      " is attempting to enroll in "+
                      sec2.ToString());
    status = sec2.Enroll(s2);
    ReportStatus(status);

    Console.WriteLine("Student "+s2.Name+ 
                      " is attempting to enroll in "+
                      sec3.ToString());
    status = sec3.Enroll(s2);
    ReportStatus(status);

    Console.WriteLine("Student "+s2.Name+ 
				   " is attempting to enroll in "+
				   sec7.ToString());
    status = sec7.Enroll(s2);
    ReportStatus(status);

    Console.WriteLine("Student "+s3.Name+ 
				   " is attempting to enroll in "+
				   sec1.ToString());
    status = sec1.Enroll(s3);
    ReportStatus(status);

    Console.WriteLine("Student "+s3.Name+ 
				   " is attempting to enroll in "+
				   sec5.ToString());
    status = sec5.Enroll(s3);
    ReportStatus(status);

    // Skip a line.
    Console.WriteLine("");

    // When the dust settles, here's what folks wound up
    // being registered for:
    //
    // sec1:  s1, s3
    // sec2:  s2
    // sec7:  s2

    // Semester is finished (boy, that was quick!).  Professors
    // assign grades.

    sec1.PostGrade(s1, "C+");
    sec1.PostGrade(s3, "A");
    sec2.PostGrade(s2, "B+");
    sec7.PostGrade(s2, "A-");
	
    // Let's see if everything got set up properly
    // by calling various display methods!
		
    Console.WriteLine("====================");
    Console.WriteLine("Schedule of Classes:");
    Console.WriteLine("====================");
    Console.WriteLine("");
    scheduleOfClasses.Display();

    Console.WriteLine("======================");
    Console.WriteLine("Professor Information:");
    Console.WriteLine("======================");
    Console.WriteLine("");
    p1.Display();
    Console.WriteLine("");
    p2.Display();
    Console.WriteLine("");
    p3.Display();
    Console.WriteLine("");

    Console.WriteLine("====================");
    Console.WriteLine("Student Information:");
    Console.WriteLine("====================");
    Console.WriteLine("");
    s1.Display();
    Console.WriteLine("");
    s2.Display();
    Console.WriteLine("");
    s3.Display();
  }

  // Note that this is a static method ...

  public static void ReportStatus(int status) {
    if (status == Section.SUCCESSFULLY_ENROLLED) {
      Console.WriteLine("outcome:  SUCCESSFULLY_ENROLLED");
    } else if (status == Section.PREREQ_NOT_SATISFIED) {
      Console.WriteLine("outcome:  PREREQ_NOT_SATISFIED");
    } else if (status == Section.PREVIOUSLY_ENROLLED) {
      Console.WriteLine("outcome:  PREVIOUSLY_ENROLLED");
    } else if (status == Section.SECTION_FULL) {
      Console.WriteLine("outcome:  SECTION_FULL");
    }
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美mv和日韩mv国产网站| 91污片在线观看| 欧美草草影院在线视频| 久久国产精品99久久人人澡| 91精品麻豆日日躁夜夜躁| 日本麻豆一区二区三区视频| 日韩欧美黄色影院| 国产精品一品视频| 国产精品入口麻豆九色| 色欲综合视频天天天| 天天色 色综合| 欧美sm美女调教| 成人激情午夜影院| 亚洲精品国产无天堂网2021| 911精品国产一区二区在线| 精品一区二区在线视频| 中文字幕不卡在线观看| 欧美在线一二三四区| 秋霞电影网一区二区| 国产色婷婷亚洲99精品小说| 99在线精品一区二区三区| 亚洲国产毛片aaaaa无费看| 欧美一区二区在线视频| 丁香六月综合激情| 一区二区三区日韩| 精品久久久久一区二区国产| 99久久免费视频.com| 午夜欧美在线一二页| 久久精品人人爽人人爽| 精品视频1区2区| 国产成人精品免费看| 亚洲电影你懂得| 久久夜色精品国产噜噜av| 色一情一伦一子一伦一区| 韩国一区二区三区| 亚洲国产日韩一区二区| 国产女人18毛片水真多成人如厕| 欧美日韩免费高清一区色橹橹 | 精品国产区一区| 91麻豆6部合集magnet| 韩国午夜理伦三级不卡影院| 亚洲一区二区三区中文字幕| 国产欧美一区二区精品秋霞影院| 欧美在线观看视频在线| 国产一区二区看久久| 亚洲欧美视频在线观看视频| 777亚洲妇女| 欧美专区亚洲专区| 国产成人自拍在线| 亚洲不卡在线观看| 国产亚洲精品aa午夜观看| 欧美日韩精品高清| 成人深夜视频在线观看| 日日夜夜免费精品视频| 中文字幕第一区第二区| 6080日韩午夜伦伦午夜伦| 午夜婷婷国产麻豆精品| 国产精品麻豆一区二区| 欧美日本韩国一区| 成人午夜视频网站| 久久精品国产网站| 亚洲大片在线观看| 中文字幕一区在线| 欧美精品一区男女天堂| 欧美精品高清视频| 色综合久久综合网97色综合| 国内精品在线播放| 日本不卡一区二区三区高清视频| 久久午夜免费电影| 91精品国产黑色紧身裤美女| 在线免费av一区| 99视频有精品| 国产91精品一区二区| 免费视频最近日韩| 亚洲精品国产成人久久av盗摄| 久久伊人蜜桃av一区二区| 91精品视频网| 4438x成人网最大色成网站| 色综合久久久久综合体 | 精品中文字幕一区二区| 亚洲一区精品在线| 亚洲婷婷综合久久一本伊一区 | 精品国产人成亚洲区| 欧美日韩国产一级| 91美女蜜桃在线| 99国产一区二区三精品乱码| 国产精品一级黄| 激情国产一区二区| 免费精品视频在线| 亚洲最大成人综合| 自拍偷拍亚洲激情| 日韩毛片在线免费观看| ●精品国产综合乱码久久久久 | 欧美三级电影一区| 欧洲精品视频在线观看| 色综合久久中文字幕| 91麻豆精品在线观看| 99国产精品国产精品毛片| 国产福利一区二区三区视频在线 | 成人黄色大片在线观看| 成人精品电影在线观看| 成人午夜私人影院| 99精品久久免费看蜜臀剧情介绍| 播五月开心婷婷综合| 91免费看视频| 成人av在线网站| 99re热这里只有精品视频| 99久久婷婷国产综合精品电影| 91丨porny丨蝌蚪视频| 91美女蜜桃在线| 欧美日韩国产另类一区| 日韩丝袜美女视频| 国产亚洲一二三区| 中文字幕av一区二区三区免费看| 亚洲欧美在线高清| 夜夜揉揉日日人人青青一国产精品| 天堂资源在线中文精品| 国内一区二区视频| 97aⅴ精品视频一二三区| 欧美午夜免费电影| 欧美一级黄色片| 国产日韩欧美激情| 亚洲国产精品视频| 精品亚洲成a人在线观看| www.一区二区| 日本韩国一区二区| 日韩一二三区不卡| 国产精品蜜臀av| 亚洲电影视频在线| 国产精品综合网| 欧美亚一区二区| 精品久久久影院| 亚洲激情网站免费观看| 免费成人在线网站| 99精品偷自拍| 久久精品一级爱片| 亚洲一级电影视频| 国产综合久久久久久鬼色| 欧美性做爰猛烈叫床潮| 久久久久久黄色| 婷婷久久综合九色综合绿巨人| 国产一区二区精品久久99| 欧美亚洲日本一区| 中文字幕欧美国产| 人人狠狠综合久久亚洲| 91麻豆6部合集magnet| 日韩视频一区二区三区在线播放| 国产欧美日韩在线观看| 日韩黄色免费网站| 91影院在线观看| 久久嫩草精品久久久久| 亚洲成a人片综合在线| 国产高清不卡一区| 日韩欧美黄色影院| 亚洲国产欧美一区二区三区丁香婷| 久久国产婷婷国产香蕉| 欧美理论在线播放| 亚洲蜜桃精久久久久久久| 国产精品系列在线播放| 日韩免费高清av| 亚洲一区二区三区四区中文字幕| 成人毛片视频在线观看| 精品久久久久久久一区二区蜜臀| 亚洲动漫第一页| 91在线精品一区二区三区| 精品国产露脸精彩对白| 久久电影网站中文字幕| 91精品国产91久久久久久最新毛片| 亚洲欧美国产高清| 成人av在线看| 欧美激情一区在线| 国产传媒一区在线| 国产亚洲欧美在线| 国产在线精品免费| 91精品黄色片免费大全| 激情伊人五月天久久综合| 欧美一区二区三区在线视频| 一区二区三区毛片| 欧美综合天天夜夜久久| 亚洲少妇中出一区| 色噜噜偷拍精品综合在线| 亚洲色图视频网| 91网站最新网址| 亚洲欧美一区二区不卡| 99久免费精品视频在线观看| 中文字幕欧美区| 成人app在线| 亚洲人成网站色在线观看| eeuss国产一区二区三区| 国产精品久久久爽爽爽麻豆色哟哟 | 国产精品亚洲а∨天堂免在线| 欧美绝品在线观看成人午夜影视| 亚洲精品国产a久久久久久| 欧亚一区二区三区| 亚洲一级二级在线| 欧美午夜精品理论片a级按摩| 久久国产精品99精品国产 | 99久久久精品| 亚洲精品视频在线观看网站| 91在线国内视频|