machine.h
来自「《数据结构、算法与应用》从C++语言应用角度列举了要点」· C头文件 代码 · 共 28 行
H
28 行
// struct used in machine shop simulation
#ifndef machine_
#define machine_
#include "arrayQueue.h"
#include "job.h"
using namespace std;
struct machine
{
arrayQueue<job*> jobQ;
// queue of waiting jobs for this machine
int changeTime; // machine change-over time
int totalWait; // total delay at this machine
int numTasks; // number of tasks processed on this machine
job* activeJob; // job currently active on this machine
machine()
{
totalWait = 0;
numTasks = 0;
activeJob = NULL;
}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?