⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memory.h

📁 该小程序完好的模拟了内存管理系统的相关功能
💻 H
字号:


using namespace std;

struct region{
	int start;	
	int length;	
	int job;
	struct region * next;
};

struct RegionPointerList{
	struct region * data;
	struct RegionPointerList * next;
};

struct region * leisure;						
struct region * used;	
struct RegionPointerList * thewhole = NULL;

struct RegionPointerList * combination(struct region * leisure_temp,struct region * used_temp);
void free_regionList(struct region * head);
struct region * insert_list(struct region * element,struct region * list,int flag);
int memeryAlloc(int length,int job,int flag);
int memeryFree(int job,int flag);
void putout1(struct region * head);
void putout2(struct RegionPointerList * head);
struct region * findpos(struct region * element,struct region * head,int flag);
struct RegionPointerList * findposition(int s,struct RegionPointerList * head);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -