Question: Some short functions: Write a function that returns the intersection of two vectors using the following header. template < typename T> vector intersect( const vector
Some short functions: Write a function that returns the intersection of two vectors using the following header.
template<typename T>
vector
the intersection of two vectors contains the common elements that appear in both vectors.
Here is the test cpp file
#include "Exercise12_31.h"
int main() { //cout << "Enter five strings for vector1: "; string s; vector
//cout << "Enter five strings for vector2: "; vector
vector
cout << endl;
system("pause");
return 0; }
submit header and implementation in one header file Exercise12_31.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
