cc.cpp

来自「操作系统——页面置换算法」· C++ 代码 · 共 22 行

CPP
22
字号
#include"paging.h"
#include<iostream.h>
void main()
{
	paging test("data1.dat",10001,11);
	test.OPT();
	cout<<test.lost<<endl;
	test.clear();

	test.LRU();
	cout<<test.lost<<endl;
	test.clear();

	test.FIFO();
	cout<<test.lost<<endl;
	test.clear();


	test.Clock();
	cout<<test.lost<<endl;; 
}

⌨️ 快捷键说明

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