#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <ctime>
#include <cstdlib>
using namespace std;
vector<string> function1(vector<string>v)
{
for(int i=0;i<4;i++)
{cin>>v[i];}
return v;
}
int main ()
{vector<string>v;
vector<string>guess;
vector<string>guess=function1(vector<string>v);
cout<<"size:"<<guess.size()<<endl;
cout<<"contents:";
for (int i=0; i<guess.size(); i++)
{cout<<guess[i]<<"";}
cout<<endl;
return 0;
}
i need to build vector<string>guess(4) in function function1 and input it to the main. can anyone point my mistake and correct it. i just have no idea..
thanx in advance
fyi=im just a newbie for c++