I need help with compsci.
In this assignment, you will redo the IntCollection assignment,
but you will use a vector instead of an array. This will make
things much easier!
Here is a class declaration. The only member data is a
vector holding ints, your job is to implement the six member
functions.
Because a vector handles everything we need under the hood, we
don't need the addCapacity function, constructors, or a
destructor. The rest of the functions are described
below. They should be simple to implement, most only require
one or two lines!
What to Submit?
You should test all of your functions to your own satisfaction
using a test program, e.g. a main() function in main.cpp.
Make sure your tests demonstrate all of the required
functionality including multiple assignments on the same line and
multiple insertions on the same line. Paste sample output
showing your test results at the bottom of your main program file
main.cpp.
Submit a zip file containing three
files to Canvas:
I need help with compsci. In this assignment, you will redo the IntCollection assignment, but you will use a vector inst
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am