vector/vector/Vector.cpp
// add item to the end of vector
add item to the end of vector
add item to the end of vector
void Vector::push(int value) {
    if (this->isFull()) {
        this->resize(this->arrayCapacity * 2);
    }
    std::cout << "ARRAY AT IS : " << *(this->pointer) << "\n";
    *(this->pointer + this->size()) = value;
    this->arraySize++;
}
void Vector :: push ( int value ) { if ( this -> isFull ( ) ) { this -> resize ( this -> arrayCapacity * 2 ) ; } std :: cout << " " << * ( this -> pointer ) << " \n " ; * ( this -> pointer + this -> size ( ) ) = value ; this -> arraySize ++ ; }
add item to the end of vector
add item to the end of vector
// check if vector is full