Commit 5e195083 authored by Matthew P. Russell's avatar Matthew P. Russell
Browse files

Update ArrayList.cpp

parent 05c60981
......@@ -13,7 +13,7 @@
* name: ArrayList default constructor
* arguments: none
* returns: none
* does: initializes the ArrayList, sets capacity to 10, and size to 0
* effects: initializes the ArrayList, sets capacity to 10, and size to 0
*/
ArrayList::ArrayList() {
......@@ -23,7 +23,7 @@ ArrayList::ArrayList() {
* name: ArrayList destructor
* arguments: none
* returns: none
* does: frees memory associated with the ArrayList, and sets size and
* effects: frees memory associated with the ArrayList, and sets size and
capacity to 0
*/
ArrayList::~ArrayList() {
......@@ -34,7 +34,7 @@ ArrayList::~ArrayList() {
* name: insert
* arguments: an integer to insert
* returns: none
* does: inserts x into the ArrayList, and increases size of ArrayList by 1
* effects: inserts x into the ArrayList, and increases size of ArrayList by 1
*/
void ArrayList::insert(int x) {
......@@ -44,7 +44,7 @@ void ArrayList::insert(int x) {
* name: remove
* arguments: an integer to remove
* returns: none
* does: removes x from the ArrayList, and decreases size of ArrayList by 1
* effects: removes x from the ArrayList, and decreases size of ArrayList by 1
*/
void ArrayList::remove(int x) {
......@@ -54,7 +54,7 @@ void ArrayList::remove(int x) {
* name: find
* arguments: an integer to find
* returns: returns true if x is in the ArrayList, false otherwise
* does: none
* effects: none
*/
bool ArrayList::find(int x) {
......@@ -64,7 +64,7 @@ bool ArrayList::find(int x) {
* name: numitems
* arguments: none
* returns: returns the size of the ArrayList
* does: none
* 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