Class Activity

With 1 or 2 other people around you.

A . Shapes:

  1. Clone the Shapes project.
  2. Make and run it
  3. Add a line class.
  4. Add to main.cpp to test the class.

B. Box Template

  1. Add code to store a long int in the code. A long int typically has a range of -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. Write test code storing very large numbers in a Box.
  2. Pull the Complex class into your project. Write test code to store complex numbers in a Box.
  3. Finally – see if you can store a Box (with something in it) in a Box. Write test code.
Scroll to Top