Changes

Jump to: navigation, search

Assignment 2 (Release 0.2): Q & A

95 bytes added, 14:29, 4 November 2012
Q & A
'''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:''' Good observation! Declare the data parameter without using the const keyword. Indeed, the data parameter should NOT be declared as a const string because it could be EDITED! <br>
'''Answer Submitted by: pliu''' <br><br>
1
edit

Navigation menu