Difference between revisions of "Project A2 20141 - OOP344"

From CDOT Wiki
Jump to: navigation, search
(Code Spec Changes: Added CField function update)
(Updated Functions: Blurb for CField::edit)
Line 13: Line 13:
 
== CField ==
 
== CField ==
 
=== Updated Functions ===
 
=== Updated Functions ===
* The function CField::edit should be '''pure virtual''' and '''should not accept any parameters''' and should '''return int'''. This will put it in line with the edit functions of its child classes.
+
* The function CField::edit currently accepts <u>4 parameters</u> and is <u>not</u> virtual.<br/>It should be updated as follows to be consistent with its child classes:
 +
** '''pure virtual'''
 +
** '''should not accept any parameters'''
 +
** '''should return int''' (it already does)
  
 
== CLine ==
 
== CLine ==

Revision as of 16:34, 7 March 2014


OOP344 | Weekly Schedule | Student List | Teams | Project | A1 | A2 | A3 | Student Resources

Introduction

The basic information of A2 is on the BTP300 site linked here. A number of issues have been found within the assignment spec and so a series of changes is required in order for the spec to produce a correct assignment. The changes are listed here.

Code Spec Changes

CFrame

Functions to be removed

The following two functions should be removed from the specification completely.

  • CFrame::display
  • CFrame::edit

CField

Updated Functions

  • The function CField::edit currently accepts 4 parameters and is not virtual.
    It should be updated as follows to be consistent with its child classes:
    • pure virtual
    • should not accept any parameters
    • should return int (it already does)

CLine

Constructors

Both constructors should accept a bool* and NOT a bool for insert mode. Updated descriptions follow:

Constructor 1

Receives 8 values.
...

  • bool* - the insert mode for the line field

...

Constructor 2

Receives 7 values.
...

  • bool* - the insert mode for the line field

...