#include #include using namespace std; class vWrapper{ public: vWrapper(); void setMyV(vector &); // void addToV(int *); void insert(int,int); //********************** ASSIGNMENT 2 ******************************************** //code the method below...they're prety self descriptive void printAll(); int calculateSum(); double calculateAverage(); //********************** ASSIGNMENT 3 ******************************************** void remove(int*); //remove all occurances of paramater from myVector //descturctor ~vWrapper(); private: vector myVector; }; //pass vector by reference ..avoid a copyu void vWrapper:: setMyV(vector &x){ myVector = x; } void vWrapper::addToV(int* x){ vWrapper::myVector.push_back( *x); } //****************** ASSIGNMENT 1 ****************************** // initialize myVector to 30 numbers vWrapper:: vWrapper(){ cout<< "default constructor"<::iterator it; it=myVector.begin()+index; myVector.insert(it,value); } int main() { vWrapper mV; int *ptr; int x = 101; ptr = &x; return 0; }