// SXDlg.cpp: 实现文件
//
#include "pch.h"
#include "framework.h"
#include "SX.h"
#include "SXDlg.h"
#include "afxdialogex.h"
#include<queue>
#include<iostream>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
using namespace std;
// CSXDlg 对话框
class Proc
{
public:
int PID, RequestNum, FileID;
CString FileReadName[10];
CString FileWriteName[10];
Proc(int pid=0,int rnum=0,int fid=0)
{
PID = pid;
FileID = fid;
RequestNum = rnum;
}
void clear()
{
RequestNum = 0;
FileID = 0;
for (int i = 0; i < 10; i++)
{
FileReadName[i] = "";
FileWriteName[i] = "";
}
}
}p[4];
static CString READFILE[100];
static CString WRITEFILE[100];
int CSID = 0;
int OUTID = 0;
CSXDlg::CSXDlg(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_SX_DIALOG, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
vo
操作系统实训——模拟Spooling
最新推荐文章于 2022-06-14 21:32:58 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)