process.h
来自「首先这个程序是在Linux下写的」· C头文件 代码 · 共 34 行
H
34 行
// Process.h: interface for the Process class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PROCESS_H__2F2761A8_3554_4FDA_B4D6_6BD66F3EC394__INCLUDED_)
#define AFX_PROCESS_H__2F2761A8_3554_4FDA_B4D6_6BD66F3EC394__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define PRIO 50
#include <string>
using namespace std;
class Process
{
public:
string name; /*the name of the process */
int pid; /*Pid. */
int used_time; /*the time of used cpu. */
int need_time;/*the last time of will use cpu*/
string state;/*the state of process.*/
//ready
//block
//running
Process(int b);
virtual ~Process();
};
#endif // !defined(AFX_PROCESS_H__2F2761A8_3554_4FDA_B4D6_6BD66F3EC394__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?