Skip to content

Instantly share code, notes, and snippets.

@StefanoFiumara
Created November 20, 2013 05:25
Show Gist options
  • Save StefanoFiumara/7558177 to your computer and use it in GitHub Desktop.
Save StefanoFiumara/7558177 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <fstream>
#include <string>
#include <ctime>
#include <cstdlib>
#include <time.h>
#include "VirtualMemoryManager.h"
using namespace std;
int main(int argc, char **argv) {
if(argc != 2) {
cout << "Usage: vmm <inputfile>, see READ_ME.txt!" << endl;
return 1;
}
//seed the RNG
srand((unsigned)time(0));
//begin the VirtualMemoryManager process with the given input file
VirtualMemoryManager vmm(argv[1]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment