Changes

Jump to: navigation, search

BTP300 The Only One

1,731 bytes added, 14:06, 25 November 2011
Project Status
== Project Status ==
Assignment 1 in Trunk Folder<br />Assignment 2 Done! <br />Assignment 3 80% Done
== Resources ==
cframe.h:34: note: candidates are: virtual void CFrame::hide(CDirection) <br />
'''Fix''': Set '''hide(CDirection)''' default value to "C_STATIONARY" (Told the prof and he fixed it on the BTP300 page)
 
'''4.''' '''Error''':
[[Image:After.png|widthpx| ]]
<br />
'''Fix''': This error can be caused in 3 places, either on your hide, capture or draw function ('''CFrame''' class that is)
Your functions should look like this:
<br />
<span style="color:blue">void</span> hide(CDirection frame){
restore(absrow(), abscol(), height(), width(), (CDirection)frame, _hiddenChars);
release(('''<span style="color:green">void**</span>''')&_hiddenChars);
}
<br />
<span style="color:blue">void</span> capture(){
<span style="color:blue">if</span>(!_hiddenChars)
_hiddenChars = '''<span style="color:green">cio</span>'''::capture(absrow(), abscol(), height(), width());
}
<span style="color:blue">void</span> CFrame::draw(int draw){
<span style="color:blue">//Sureee, just make sure to use
//SetLine to draw your box and
//When you're printing your height
//Use this </span> <br />
<span style="color:blue">for</span>(i = 1; i < height() - 1; i++){
<span style="color:blue">//Code Here</span>
} <br />
<span style="color:blue">//DON'T FORGET THAT -1 !!!!</span>
}
'''5.''' '''Error''':
'''Draw()''' function not working properly and '''<span style="color:green">int</span> CField::display(offset);''' not returning proper value <br />
'''Fix: <span style="color:blue">C_BORDER_CHARS</span>''' should be '''"/-\\|/-\\<span style="color:red">|</span>"''' instead of '''"/-\\|/-\\"''' (Told Chris and he fixed it)
'''<span style="color:green">int</span> display(int offset);''' on '''CField''' class should actually be '''<span style="color:red">void</span> display(int offset);''' (Told Chris and he fixed it)
36
edits

Navigation menu