pagelist[p].dirty=1; } } else {
if (pagelist[P[po]].dirty) {
//将更新后的内容写回外存 pagelist[P[po]].dirty=0; }
pagelist[P[po]].flag=0; printf(\printf(\
pagelist[p].block=pagelist[P[po]].block; pagelist[p].flag=1; P[po]=p; po=(po+1)%M; } }
}while (!stop);
printf(\数组P 的值为:\\n\for (i=0;i printf(\} } void select() { long se; char s[128]; do { printf(\请选择题号(1/2):\if (scanf(\{ scanf(\if (strcmp(s,\ { return; } } else { if (se==1) { init_ex1(); work_ex1(); } if (se==2) { init_ex2(); work_ex2(); } } }while (1); } int main() { select(); return 0; }