CPS 100E, Fall 1996 Inlab 3


Name:

Lab Section:


You should answer the following questions and either turn in the sheet during lab, or answer the questions when you submit your README file. These questions are worth 2 out of the 10 points for each lab. You don't need to get all the answers right to get the 2 points, but you must try.

It's ok to ask a UTA or TA for help, but first you must try to find the answers on your own.


  1. Look at the first line of the file frame.cc, there is an error in the comment (if that's possible). What is the error?


  2. The vector of Frame declared in game.h as Vector<Frame> myFrames is constructed in the Game constructor in game.cc. What line of code constructs this vector (copy the line here)


  3. Is there some part of the code in main.cc that you do not fully understand? If so, what is it?


  4. What is the purpose of the lines below in the function Game::TallyScore() from game.cc? if (toFrame >= MAX_FRAME) { toFrame = MAX_FRAME; }


  5. The constructor for the Game class is declared in game.h as follows Game(unsigned int skill_level=0); // set skill level What purpose does the assignment of 0 to skill_level in the constructor prototype serve?