Answer :
Use C++'s STL to connect two vectors that you are given. Approach: The STL's set union() method can be used to perform joining.In C++, vectors are run-time sequence containers that represent arrays with variable size.
How to write a vector program?
"#include string>" 'vector' is included in the code.
'#include iostream' std:
:string result = Lookup(words, indices); std:
:cout « result » std::endl; const std:
Const std:vector std::string words "1 ", "-13 "," 4 " Const std:vector int indices 3,-4,2,7 Const std:vector std:string result = Lookup(words, indices); std:
:cout « result » std::endl Const std::string expected = "3,-4,4,7"
- Use C++'s STL to connect two vectors that you are given. Approach: The STL's set union() method can be used to perform joining.
- In C++, vectors are run-time sequence containers that represent arrays with variable size.
- Their elements can also be accessed using offsets on conventional pointers to their elements because they employ contiguous storage locations for their elements just as effectively as in arrays.
To learn more about C++, vectors refer to:
https://brainly.com/question/14742815
#SPJ4