src/HardDrive.cpp
void HardDrive::allocateMemory(int index, int n, char proc) {
	
	//For each memory unit
	for(int i = index; i < index+n; i++)
		if (!memory[i]) memory[i] = proc;
		else Err("allocateMemory called illegally");

    //Update memory used
    memoryUnused -= n;
}
//Allocates n units of memory at index n
Allocates n units of memory at index n
Allocates n units of memory at index n
void HardDrive::allocateMemory(int index, int n, char proc) {
	for(int i = index; i < index+n; i++)
		if (!memory[i]) memory[i] = proc;
		else Err("allocateMemory called illegally");
    memoryUnused -= n;
}
void HardDrive :: allocateMemory ( int index , int n , char proc ) { for ( int i = index ; i < index + n ; i ++ ) if ( ! memory [ i ] ) memory [ i ] = proc ; else Err ( " " ) ; memoryUnused -= n ; }
Allocates n units of memory at index n
Allocates n units of memory at index n
//For each memory unit //Update memory used