lptnode2.h
来自「数据结构c++语言描述 Borland C++实现」· C头文件 代码 · 共 28 行
H
28 行
#ifndef LPTNodes_
#define LPTNodes_
class JobNode {
friend void LPT(JobNode *, int, int);
friend void main(void);
public:
operator int () const {return time;}
private:
int ID, // job identifier
time; // processing time
};
class MachineNode {
friend void LPT(JobNode *, int, int);
public:
operator int () const {return avail;}
operator += (int x)
{(*this).avail += x;
return *this;}
private:
int ID, // machine identifier
avail; // when it becomes free
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?