Help to start a display function

Hi guys , so I started a program where every answer or assigned value is returned to v ( return v) . I need help to develop a function to display it . I have to use showStats(player). Please help and thank you . Hope you can explain it to me , not the forums explanation.

Struct player
{
//Ignore for now

}

player createplayer(string);


Int main ()
{

Cout << " please enter name " <<endl;
String t;
Getline(cin,t);
Createplayer(t);
ShowStats()
// don't know how to start it


}




player createplayer (string t)
{ player v
// I left out the other steps but I assigned numbers that
Ints and double , and a name


Return v;
// the problem I have in which to move v to display in a function in int main()
}

Last edited on
Topic archived. No new replies allowed.