摘要: #include <stdio.h>#include <stdlib.h>#include <iostream.h>#include <time.h> #define Bsize 3#define Psize 20struct pageInfor{ int content;//页面号 int timer;//被访问标记};class LRU{ public: LRU(int qstring[]); int findSpace(void);//查找是否有空闲内存 int findExist(int curpage);//查找内存中是否有该页面 in 阅读全文
posted @ 2012-05-13 10:07 常伟华 阅读(4260) 评论(4) 推荐(1) 编辑