CS285 -- Lab 1: Roll Your Own Vector Class

Winter 2004
Each student should complete this lab individually.
Objectives Addressed

No course objectives are addressed by this assignment. It's purpose is to serve as a prerequisite assessment.

Procedure

Implement your own version of the templated std::vector. You class should be called vector and should be wrapped in a namespace called cs285. Your class should implement the constructor (with up to two parameters), copy constructor, destructor, assignment operator, and the following member functions:

This class will be used in future lab projects.

Interim Activity Log (due 11:00pm, the day prior to week 2 lab)

You should submit an activity log to indicate your activity and progress on this assignment during the first week.

Lab report (due 11:00pm, the day prior to week 3 lab)

Here is a template file to use as a starting point for this report.

Your lab report need not be self-contained. Your report should include:

As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the XML help video and/or sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost. It may be wise to keep a diskette backup as well.

Acknowledgment

This laboratory was developed by Dr. Chris Taylor.

Last Updated: Friday, 02-Jan-2015 09:08:18 CST