a1_sample_solution
所属分类:单片机开发
开发工具:C/C++
文件大小:10KB
下载次数:3
上传日期:2012-05-20 20:39:26
上 传 者:
deantzy
说明: c 语言小样 有各种功能 可以调试
(c language sample a variety of functions)
文件列表:
utility1.c (4791, 2011-05-02)
options1.c (11649, 2011-05-02)
makefile (871, 2011-05-02)
assign1.h (1839, 2011-05-02)
assign1.c (7098, 2011-05-02)
/***************************************************************************
* COSC1283/1284 - Programming Techniques
* Semester 1 2011 Assignment #1
* Full Name :
* Student Number :
* Yallara Username :
* Course Code :
* Program Code :
* Start up code provided by Christopher Hoobin and Xiaodong Li
****************************************************************************/
-----------------------------------------------------------------------------
If selected, do you grant permission for your assignment to be released as an
anonymous student sample solution?
-----------------------------------------------------------------------------
Yes
-----------------------------------------------------------------------------
Known bugs:
-----------
None
Incomplete functionality:
-------------------------
None
Assumptions:
------------
- For Minesweeper, I'm assuming that there can't be zero mines and there must
be less mines than the amount of squares on the board.
To accept zero mines line 200:
if (!readInt(&numMines, 3, 1, maxMines,
should be changed to:
if (!readInt(&numMines, 3, 0, maxMines,
To accept a full field of mines, line 199:
maxMines = ((m * n - 1) > 100) ? 100 : (m * n - 1);
should be changed to:
maxMines = ((m * n - 1) > 100) ? 100 : (m * n);
- For the Minesweeper option, choosing to "try again" and entering valid input
will increment minesweeper option statistic.
- For the Session Summary option, since there is no input required the option
count will be incremented before the table is printed.
Any other notes for the marker:
-------------------------------
近期下载者:
相关文件:
收藏者: