上传者: 43934844
|
上传时间: 2022-06-22 18:04:57
|
文件大小: 52KB
|
文件类型: DOC
程序代码: #include #include #define MAXMSIZE 99 using namespace std; struct Node{ int startAddress; char name; int size; int endAddress; struct Node *prior; struct Node *next; }; struct Blocklist { Node* head; }; Blocklist* freelist=new Blocklist; Blocklist* busylist=new Blocklist; void initial(); void allocateBlock(); void print(); void reclaimBlock(); void main() { int slct; initial(); print(); cout<<"select allocetion (1) or reclaim (2):"<>slct;