Commit 1296ae45 authored by Matthew P. Russell's avatar Matthew P. Russell
Browse files

Update ArrayList.cpp

parent 2ff03310
/*
ArrayList.cpp
Matt Russell
Function definitions for the ArrayList class
TODO: fill in functions!
*/
#include "ArrayList.h"
/*
* name: ArrayList default constructor
* arguments: none
* does: initializes the ArrayList
* effects: sets capacity to 10, and size to 0
*/
ArrayList::ArrayList() {
}
/*
* name: ArrayList destructor
* arguments: none
* does: frees memory associated with the ArrayList
* effects: sets size and capacity to 0
*/
ArrayList::~ArrayList() {
}
/*
* name: insert
* arguments: an integer, x
* does: inserts x into the ArrayList
* effects: increases size of ArrayList by 1
*/
void ArrayList::insert(int x) {
}
/*
* name: remove
* arguments: an integer, x
* does: removes x from the ArrayList
* effects: decreases size of ArrayList by 1
*/
void ArrayList::remove(int x) {
}
/*
* name: find
* arguments: an integer, x
* does: returns true if x is in the ArrayList, false otherwise
* effects: none
*/
bool ArrayList::find(int x) {
}
/*
* name: numitems
* arguments: none
* does: returns the size of the ArrayList
* effects: none
*/
int ArrayList::numitems() {
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment