freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

操作系統(tǒng)課程設計(設備管理)(編輯修改稿)

2025-05-04 21:38 本頁面
 

【文章內(nèi)容簡介】 造函數(shù) { = total。 deviceType = type。 useState = new int[total]。 for (int i = 0。 i total。 i++) //初始化每個設備 { useState[i] = 0。 } } } public class Device { private DeviceTable[] table = new DeviceTable[3]。 //三種設備 private static Device device = new Device()。 public Device() { InitDevice()。//初始化設備 } private void InitDevice() //設備初始化,A設備3個,B設備2個,C設備1個 { table[0] = new DeviceTable(, 3)。 table[1] = new DeviceTable(, 2)。 table[2] = new DeviceTable(, 1)。 } // /////////////////檢查類型為type的設備是否可用////////////////////// // public bool JudgeDevice(DeviceType type) { bool str = false。 switch (type) { case : { if (table[0].total 0) { str = true。 } break。 } case : { if (table[1].total 0) { str = true。 } break。 } case : { if (table[2].total 0) { str = true。 } break。 } } return str。 } // ////////////分配設備,返回第幾個設備被占用//////////////////////// // public int Allocate(DeviceType type) { int k = 0。 switch (type) //使用switch語句選擇分配設備不同函數(shù) { case : { table[0].total。 for (int i = 0。 i 3。 i++) { if (table[0].useState[i] == 0) {
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1