#include #include #include using namespace std; //myAlgo_merge1.cpp int Feed(); int main() { string str1[]= {"A", "B","C","D","E" }; string str2[]= {"a", "b","c","d","e","g","h" }; vectorv1(5),v2(12); vector::iterator it; copy(str1,str1+5,v1.begin()); cout<<"\n string array 1: "; for(it = v1.begin(); it !=v1.end(); it++) { cout<<" "<<*it; } merge(str1,str1+5,str2,str2+7,v2.begin()); cout<<"\n -- merged str1[] and str2[] --\n"; for(it = v2.begin(); it !=v2.end(); it++) { cout<<" "<<*it; } return 0; } int Feed() { static int n1; return n1++; }