http:^^www.cs.cornell.edu^info^courses^spring-96^cs100^programs^program5.html
来自「This data set contains WWW-pages collect」· HTML 代码 · 共 96 行
HTML
96 行
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
<html><head><title> CS100 Program 5 </title></head><body><h2> CS100 Program 5 </h2><strong> Due: </strong> Tuesday, April 16, 1996. <p><h3> Program 5 Notes </h3>Program 5 ("Genetics") includes a custom Macintosh user interface.The extra files handed out with the project are part of thisinterface. You need not look at these files; the files you are mostlikely to be interested in are: Genetics.h and Graphics.h. You mayalso want to look at the definition of the <code>FacingRC</code>function in Graphics.cp. <p>The code you are to write should go into Genetics.cp (the filecontaining the main program). <p>Note that the <code>printf</code> function is not available in thisassignment. Since we are using the custom user interface window,there is no console for output. <p><blink><strong>IMPORTANT:</strong></blink> Since this program uses acustom Macintosh interface, the project folders may become large whenyou compile the code. Try to use a high density (HD) disk with nothingelse on it when you work on the program. <p><blink><strong>NOTE:</strong></blink> If you retrieved the projectfiles 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 dialogbox when you type in the numbers, or the wrong numbers will be placedin the genes array (in the <code>GetGenes(genes)</code> call). Theproblem has been corrected, if you want to retrieve the project filesagain; but using the Tab key will work properly. <p><h3> Corrections to Program 5 Handout </h3><ul><li> (page 3) the constant <code>kGridColumnsPlus2</code> should be<code>kGridColsPlus2</code>. <p><li> (page 3) <code>typedef int PopulationType[kNumKinds][Organisms]</code> should be <code>typedef intPopulationType[kNumKindsOrganisms]</code>. <p><li> (page 3) <code>kMaxUears</code> should be <code>kMaxYears</code>. <p><li> (page 5) in the first paragraph, <code>kGridRowsPlus2</code>should be <code>kGridRowsPlus2 - 1</code>; same correction for<code>kGridColsPlus2</code>.</ul><hr>Click <em> only one </em> of these links to retrieve the Program 5folder: <p>If you will be working on Program 5 in the public labs, get the<a href ="ftp://ftp.cs.cornell.edu/pub/courses/cs100-s96/Program5.sea.hqx">Program 5 Folder</a>. <p>If you will be working on your own Mac, get the<a href ="ftp://ftp.cs.cornell.edu/pub/courses/cs100-s96/Program5AtHome.sea.hqx">Program 5 (At Home) Folder</a>. This folder contains an extralibrary which we have already installed in the labs, but which youwill need at home. <p></body><hr><address>CS100 Spring 1996 <br>pierce@cs.cornell.edu</address></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?