lptnodes.h
来自「一本全面剖析C++数据结构算法的书籍」· C头文件 代码 · 共 25 行
H
25 行
#ifndef LPTNodes_#define LPTNodes_class JobNode { friend void LPT(JobNode *, int, int); friend void main(void); public: operator int () const {return time;}// private: g++ has a problem with main a friend int ID, // job identifier time; // processing time};class MachineNode { friend void LPT(JobNode *, int, int); public: operator int () const {return avail;} // private: g++ has a problem with main a friend int ID, // machine identifier avail; // when it becomes free};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?