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

正文內(nèi)容

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

2025-05-04 21:38 本頁面
 

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