process.cpp

来自「首先这个程序是在Linux下写的」· C++ 代码 · 共 28 行

CPP
28
字号
// Process.cpp: implementation of the Process class.
//
//////////////////////////////////////////////////////////////////////

#include "Process.h"
#include <iostream>
using namespace std;

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Process::Process(int b):pid(b)
{
	cout<<"please input the name(sting<15character):";
	cin>>name;
	cout<<"please input the needtime(int):";
	cin>>need_time;
	
	state = "ready";
	used_time = 0;
}

Process::~Process()
{

}

⌨️ 快捷键说明

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