Difference between revisions of "BTP300 The Only One"

From CDOT Wiki
Jump to: navigation, search
(Created page with '= Assignment #2 = == Repository == === Repo ID === svn://zenit.senecac.on.ca/btp300_113rep?? === Trunk Status === committed by [Simon de Almeida] on 2011-10-12 / being committed…')
 
(Bug Fixes)
Line 19: Line 19:
 
'''1'''. '''Error''':
 
'''1'''. '''Error''':
 
   "cframe.h:15: error: default argument for parameter of type 'CFrame*'" <br />
 
   "cframe.h:15: error: default argument for parameter of type 'CFrame*'" <br />
   '''Fix''': Easy fix, just do a (Cframe*)NULL on the last contructor argument.
+
   '''Fix''': Easy fix, just do a '''(Cframe*)NULL''' on the '''last contructor argument'''.
  
 
'''2.''' '''Error''':
 
'''2.''' '''Error''':
Line 27: Line 27:
 
   a2test.cpp:151: error: no matching function for call to 'CFrame::draw()'
 
   a2test.cpp:151: error: no matching function for call to 'CFrame::draw()'
 
   cframe.h:33: note: candidates are: virtual void CFrame::draw(int) <br />
 
   cframe.h:33: note: candidates are: virtual void CFrame::draw(int) <br />
   '''Fix''': Set draw(int) default value to "C_FULL_FRAME" (Told the prof and he fixed it on the BTP300 page)
+
   '''Fix''': Set '''draw(int)''' default value to "C_FULL_FRAME" (Told the prof and he fixed it on the BTP300 page)
  
 
'''3.''' '''Error''':
 
'''3.''' '''Error''':
Line 34: Line 34:
 
     a2test.cpp:176: error: no matching function for call to 'CFrame::hide()'
 
     a2test.cpp:176: error: no matching function for call to 'CFrame::hide()'
 
     cframe.h:34: note: candidates are: virtual void CFrame::hide(CDirection) <br />
 
     cframe.h:34: note: candidates are: virtual void CFrame::hide(CDirection) <br />
   '''Fix''': Set draw(int) default value to "C_FULL_FRAME" (Told the prof and he fixed it on the BTP300 page)
+
   '''Fix''': Set '''hide(CDirection)''' default value to "C_STATIONARY" (Told the prof and he fixed it on the BTP300 page)

Revision as of 20:09, 27 October 2011

Assignment #2

Repository

Repo ID

svn://zenit.senecac.on.ca/btp300_113rep??

Trunk Status

committed by [Simon de Almeida] on 2011-10-12 / being committed by [no one]

Team Members

  1. Simon De Almeida
  2. eMail All

Project Status

Resources

Bug Fixes

1. Error:

 "cframe.h:15: error: default argument for parameter of type 'CFrame*'" 
Fix: Easy fix, just do a (Cframe*)NULL on the last contructor argument.

2. Error:

 a2test.cpp: In function 'void testFrame()':
 a2test.cpp:150: error: no matching function for call to 'CFrame::draw()'
 cframe.h:33: note: candidates are: virtual void CFrame::draw(int)
 a2test.cpp:151: error: no matching function for call to 'CFrame::draw()'
 cframe.h:33: note: candidates are: virtual void CFrame::draw(int) 
Fix: Set draw(int) default value to "C_FULL_FRAME" (Told the prof and he fixed it on the BTP300 page)

3. Error:

 a2test.cpp:175: error: no matching function for call to 'CFrame::hide()'
    cframe.h:34: note: candidates are: virtual void CFrame::hide(CDirection)
    a2test.cpp:176: error: no matching function for call to 'CFrame::hide()'
    cframe.h:34: note: candidates are: virtual void CFrame::hide(CDirection) 
Fix: Set hide(CDirection) default value to "C_STATIONARY" (Told the prof and he fixed it on the BTP300 page)