MIME-Version: 1.0 Server: CERN/3.0 Date: Monday, 16-Dec-96 23:32:38 GMT Content-Type: text/html Content-Length: 2709 Last-Modified: Monday, 08-Apr-96 21:13:41 GMT
FacingRC
function in Graphics.cp. The code you are to write should go into Genetics.cp (the file containing the main program).
Note that the printf
function is not available in this
assignment. Since we are using the custom user interface window,
there is no console for output.
Since this program uses a custom Macintosh interface, the project folders may become large when you compile the code. Try to use a high density (HD) disk with nothing else on it when you work on the program.
If you retrieved the project
files before April 8, the Genes dialog box may not work as expected:
you will have to use the Tab key to move between fields in the dialog
box when you type in the numbers, or the wrong numbers will be placed
in the genes array (in the GetGenes(genes)
call). The
problem has been corrected, if you want to retrieve the project files
again; but using the Tab key will work properly.
kGridColumnsPlus2
should be
kGridColsPlus2
.
typedef int PopulationType[kNumKinds][Organisms]
should be typedef int
PopulationType[kNumKindsOrganisms]
.
kMaxUears
should be kMaxYears
.
kGridRowsPlus2
should be kGridRowsPlus2 - 1
; same correction for
kGridColsPlus2
.
If you will be working on Program 5 in the public labs, get the Program 5 Folder.
If you will be working on your own Mac, get the Program 5 (At Home) Folder. This folder contains an extra library which we have already installed in the labs, but which you will need at home.