job.h

来自「本人大学毕业设计」· C头文件 代码 · 共 41 行

H
41
字号
//作业控制块
#include"iostream.h"
#include"windows.h"
#include"winbase.h"
#include"time.h"
int job_nums=0;//作业号
class job
{
public:
	char job_name[10];//作业名
	int job_num;//作业号
	int job_size;//作业大小
	int page_n;//记录一个作业所生成的页面数
	char job_time[9];//作业调入的时间
	int mpage_size;//页面记录一下主存页面大小
	void show();//显示作业提示信息
	void showall();//显示作业信息
	void input_information(int,int);//输入作业信息
};
void job::show()
{
	cout<<"\t输入作业名字,作业大小(K/单位)"<<endl;
}
void job::input_information(int job_number,int job_n)
{
	cout<<"\t作业名:";
	cin>>this->job_name;
	cout<<"\t作业大小:";
	cin>>this->job_size;
    
    //job_nums+=job_number;
	this->job_num=job_n+1;
	cout<<"\t提交时间为:....    ";
	_strtime(job_time);
	cout<<this->job_time<<endl;
}
void job::showall()
{
	cout<<"作业名\t作业号\t作业大小\t作业提交时间\t作业最多占用内存块数"<<endl;
}

⌨️ 快捷键说明

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