How do i call that function so that i can use the vector in main?
thanks!
Code:vector<string> function();
int main()
{
//what goes here?
}
vector<string> function()
{
vector<string> s(3);
s[0] = "one";
s[1] = "two";
s[2] = "three";
return s;
}