Suppose I create a vector string v and pass this vector to parameter with vector string array, I got an compiler error: no matching function for call.
My Function
int functionA(vector <string> &a) //vector <string> &a[] could not work
{}
Calling function in main:
vector <string> a;
for(int i =0 ; i < a.size(); i++)
{
functionA(a[i]); //Error at this line...
}
functionA(a) should works but I want to use the array in the vector string. How can I do that ?