I got a problem with this code. here it is.
cout <<"Name: "<<player.getName();
void setName(string playername);
void Player::setName(string playername)
pName = playername;
Okay, now, in main.cpp, i have created the class(the object).
I've written this:
Now, what im trying to do is acessing it from the Show.cpp (Show class) function called charstats.
//Create the player
The charstats will actually print the player.getName() on the screen...How am i able to acess player.getName from there?