proexc.h

来自「里面有5个关于操作系统进程调度的算法源码」· C头文件 代码 · 共 50 行

H
50
字号
#if !defined(AFX_PROEXC_H__B8F9D1FB_E49B_4B17_8EAF_F38860D16C18__INCLUDED_)
#define AFX_PROEXC_H__B8F9D1FB_E49B_4B17_8EAF_F38860D16C18__INCLUDED_

#include <iostream>
#include <conio.h>

using namespace std;

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CPCB
{
public:
	CPCB()
	{
		next = 0;
		state = 'W';
		rtime = 0;
	}
	char name[10];
	char state;
	int super;
	int ntime;
	int rtime;
	int ptime;
	CPCB *next;
};

class CProExc  
{
public:
	void displayPro(CPCB *ppcb);
	void Start();
	bool InitializeByFile(char *path);
	CProExc();
	virtual ~CProExc();
private:
	CPCB *first;
	CPCB *last;
	int proTotal;
	int time;
	int timeTotal;
protected:
	void running(CPCB *);
};

#endif // !defined(AFX_PROEXC_H__B8F9D1FB_E49B_4B17_8EAF_F38860D16C18__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?