#define true 1 #define PROCESSES_NUMBER 5 //系统中所有进程数量 typedef int bool; typedef struct { int A; int B; int C; }RESOURCE; RESOURCE Max[PROCESSES_NUMBER]; //最大需求矩阵Max RESOURCE Allocation[PROCESSES_NUMBER]; //已分配资源数矩阵Allocation RESOURCE Need[PROCESSES_NUMBER]; //需求矩...