Answered step by step
Verified Expert Solution
Question
1 Approved Answer
/ / 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started