Open main menu

CDOT Wiki β

Changes

Assignment 2 (Release 0.2): Q & A

472 bytes added, 17:02, 3 November 2012
Q & A
'''Q:''' The CLabel::draw(int) function receives a parameter that indicates the border's visibility i.e. C_NO_FRAME or C_FULL_FRAME. However, the specifications state that a label is never bordered, so how would we make use of the parameter passed through this function?<br>
'''Question Submitted by:''' Team 15<br>
'''A:''' <br>
'''Answer Submitted by:''' <br><br>
 
'''Q:''' The CLine constructor (the first one which takes the line's data as a parameter) is supposed to pass this parameter's address directly to the CField constructor (according to the specifications) which takes a void* data argument. But, since the data parameter in CLine has const attached to it, we cannot send it to the CField constructor. How would we resolve this?<br>
'''Question Submitted by:''' Team 15<br>
'''A:''' <br>