磁盘调度算法(FIFO、SSTF、SCAN、CSCAN)(已经更新bug)
自己闲的蛋疼,把磁盘调度算法用C跟C++模拟了一下,不知道有没有bug,欢迎提出建议~
#include
#include
#include
#include
using namespace std;
const int maxn = 100;
int n, now, s, sum, nnow, everage, p[maxn], b[maxn], sp[maxn], lenp[maxn];
原创
2016-01-03 12:27:07 ·
8757 阅读 ·
0 评论