Question: Q1 Class Vec int Q1.i Previous class declaration e Recall the declaration of the class Vecint . We shall overload some operators for the class





Q1 Class Vec int Q1.i Previous class declaration e Recall the declaration of the class Vecint . We shall overload some operators for the class Vec.int. class Vec int ( public Vec int (O; Vec int (int n); Vec int (int n, int a) Vec int (const Veclint &orig): Vec intk operator- (const Vec int &rhs); Vec int O; int capacity) const; int size) const; int front ) const; int back() const; void clear; void pop.back); void push_back (int a); int& at (int n); private: void allocate) void release ) int _capacity; int size; int * vec
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
