Question: / / Test 4 . cpp : Defines the entry point for the console application. / / #include stdafx.h #include #include #include #include using
Testcpp : Defines the entry point for the console application.
#include "stdafx.h
#include
#include
#include
#include
using namespace std;
void OutVectorconst vector &;
void InVectorvector &;
int main
vector X;
vector X;
srand time;
cout "Size of X Vector : Xsize endl;
cout "Size of X Vector : Xsize endl;
OutVectorX;
OutVectorX;
cout X new values:" endl;
InVectorX;
OutVectorX;
cout X new values:" endl;
InVectorX;
OutVectorX;
X;
OutVectorX;
X X;
cout "New X endl;
OutVectorX;
vector XX;
cout "New X endl;
OutVectorX;
Xat;
cout "New X endl;
OutVectorX;
vector X;
return ;
void OutVectorconst vector &Y
sizet i;
for i ; i Ysize; i
cout setw Yi;
cout endl;
void InVectorvector &Y
for sizet i ; i Ysize; i
Yirand;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
