CS 321 Homework 3
Orion Sky Lawlor, olawlor@acm.org, 2005/04/21 (Public Domain)

Here are a set of three problems regarding memory mapping,
and one regarding binary I/O.

Each program uses the included libraries: "badmemlib",
for detecting bad memory accesses; and "mmapfile", for 
changing the process's memory mapping with data from a file.
These libraries hide the different interfaces for these
operations on Linux, Windows, and MacOS X-- so you should
be able to run your code on any of these machines.
Be aware Windows is a bit more careful about how you use
memory-- Windows will not let you map onto a used address
unless you unmap it first, though Linux will let you map
over an existing mapping.


To build and run on Linux or MacOS X, you can type
	g++ program1.cpp && ./a.out

To build and run on Windows, type
	cl /EHsc program1.cpp
	program1
or use a GUI of your choice.  

Be aware that problem1 and problem2 read (and write) 
the file "test.1m"; and problem4 reads "problem4.in",
which must be present in the current directory.
