CSCI 159 Bonus lab exercises

The bonus lab is an independent exercise (we won't be specifically covering it in the labs), and is due by 8pm Friday Dec. 6th

There are as usual two halves: a warm-up exercise working with pointers, pointers to structs, and dynamic memory allocation/deallocation (warm-up exercise done in basic.cpp), then a design/implementation exercise (done in bonus.cpp):

Here is the collection of new C++ syntax elements we'll be using for the bonus lab.


Follow our usual setup process

  1. Log in, open a browser, go to the bonus lab page, open a terminal window:
    (see lab 2 if you need a refresher on any of the steps)

  2. get the bonus lab:
    make -f make159 csci159/bonus

  3. Go into your bonus directory and begin the edit/compile/test/submit routine: As with previous labs, you'll see that the two .cpp files are nearly empty to start with.


First half: pointers and pointers to structs (to be done in basic.cpp)

T.B.D.


Second half: design and implementation problem (to be done in bonus.cpp)

T.B.D.