level 7
http://www.56.com/u80/v_MTU5MjE5MDk.html小队亲哼哼哈~~-0-这孩子怎么这么可爱
捏
~被贤重哥亲一下也能高兴成内样~~跑嫩老远~哈哈~想我们家内六头~随便拉来就是一口~尤其猫猫~- -PG也是~也有害羞的时候哈~~-0-
2007年08月21日 14点08分
1
level 7
竟然还来了句谢谢哥~孩子啊~你内PG哥也不过就亲你下嘛~-0-以后要抓到他每天都亲你才可以哦~~~-0-
2007年08月21日 14点08分
2
level 0
http://zhidao.baidu.com/question/7341143.html
2007年09月06日 02点09分
7
level 0
#include
#define M 4 #define N 20 typedef struct page { int NO; int time; }Pmsg; Pmsg b[M]; int drops[100]; int K; void initiate(Pmsg *b) { int i; for(i=0;i
max) { max=b[i].time; tag=i; } } return tag; } int exit(int f,Pmsg *b) { int i; for(i=0;i
=0) { b[v].time=0; for(i=0;i
2007年09月13日 03点09分
8
level 1
#include "stdafx.h" #
include
#include
#include
#define N 20 typedef struct page { int num; /*记录页面号*/ int time; /*记录调入内存时间*/ struct page * next; }Page; /* 页面逻辑结构,结构为方便算法实现设计*/ int queue[100]; /*记录调入队列*/ int K; /*调入队列计数变量*/ int l; Page * head; void insert(Page * i,Page * top) { if (top==NULL) top=i; else while (top->next!=NULL) top=top->next; top->next=i; top=head; } /*初始化内存单元、缓冲区*/ void Init() { int i; Page * node; head=NULL; for(i=0;i
num=-1; node->time=l-i-1; node->next=NULL; insert(node,head); } } Page * Equation(int fold,Page *b) { while (b!=NULL) { if (b->num==fold) return b; else b=b->next; } return b; } Page * GetMax(Page *b) { int max=-1; Page * tag; while (b!=NULL) { if (b->time>max) { max=b->time; tag=b; } b=b->next; } return tag; } void Lru(int fold,Page * b) { Page * val; val=Equation(fold,b); if (val) { val->time=0; while(b!=NULL) { if (b->num==fold) b->time=0; else b->time++; b=b->next; } } else { queue[K++]=fold;/*记录调入页面*/ val=GetMax(head); val->num=fold; val->time=0; while (b!=NULL) { if (b->num!=fold) b->time++; b=b->next; } } } int main(int argc, char* argv[]) { int a[N]; int i; start: printf("请输入页面序列:"); for (i=0;i
2007年09月13日 03点09分
10
level 1
FIFO页面置换算法的实现 public Page execute(String str,Page p1){ pa=p1; st=str; k=0; //查看页表中是否存在正在进入的页号 for(int i=0;i
2007年09月13日 03点09分
11