#include #include using namespace std; int main(){ cout << " *** Exercise 4.29 **** Dynamically allocate an array of integers after they are read into a vector from the standard input" << endl; vector vecint; int iread; while(cin>>iread) vecint.push_back(iread); cout << "Your vector is:" << endl; for(vector::iterator iter=vecint.begin();iter!=vecint.end();iter++) cout << *iter << "\t"; cout << endl<< "And it's dimension is "<< vecint.size()<< endl; cout << "Now creating an array of integers with dimension " << vecint.size()<< endl; int *pvec = new int [vecint.size()]; cout << "Let's check the values before and after we change it using the vector..."<< endl; for(size_t i=0; i!=vecint.size(); i++){ cout << "pvec_before["<