摘要: // 磁盘调度算法.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>using namespace std;#include<cmath>const int MaxNumber=100; int TrackOrder[MaxNumber];//磁道访问序列 int MoveDistance[MaxNumber];//移动的磁道数 double AverageDistance;//平均寻道长度 bool direction;//移动方向;若为1时是想磁道号增加的方向访问,否者,反方向 阅读全文
posted @ 2012-12-01 14:46 叶城宇 阅读(283) 评论(0) 推荐(0) 编辑