#include "Vector.hpp" Vector::Vector(int length) { cout << "Create vector of size: " << length << endl; size = length; array = new (nothrow) int[size]; if(array==NULL) { cerr << "Memory allocation failure!" << endl; exit(-1); } for(int i=0; i