程序代码: #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;
2022-06-22 18:04:57
52KB
文档资料