Is it possible to return something like a person's name from a function. This is the code I have but it keeps giving me errors. Please help!!
1 2 3 4 5 6 7 8 9
int names()
{
char player_one[20];
cout<<"Player 1 please enter your name"<<endl;
cin>>player_one;
cout<<"Player one's name is "<<player_one<<" !"<<endl;
cin.get();
return (player_one);
}