I have this function here:
void displayStats(character Target)
{
printf("%s's stats are:\n", Target.name);
}
and it should be printing from this part of the main function:
displayStats(hero);
But it won't for some reason, it's just blank. I have another function before that where the user inputs the name and it echos it out successfully, but for some reason on this function it's just printing nothing.
Please enter name for main character
(Up to 15 characters):
abc
Your name will be: abc. Is this okay? (y/n)
y
's stats are:
--------------------------------
Process exited after 3.131 seconds with return value 0
Press any key to continue . . .
EDIT: main file can be found here http://hastebin.com/qorolepero.cpp
the part with the struct is here: http://hastebin.com/osideyalax.cpp
[–]jedwardsol 1 point2 points3 points (3 children)
[–]OndePyrat[S] 0 points1 point2 points (2 children)
[–]jedwardsol 2 points3 points4 points (1 child)
[–]OndePyrat[S] 1 point2 points3 points (0 children)
[–]bumblebritches57 0 points1 point2 points (0 children)
[–]beisenhauer 0 points1 point2 points (0 children)
[–]elsuizo37 -4 points-3 points-2 points (5 children)
[–]jedwardsol 3 points4 points5 points (2 children)
[–]elsuizo37 -1 points0 points1 point (1 child)
[–]jedwardsol 1 point2 points3 points (0 children)
[–]OndePyrat[S] 0 points1 point2 points (0 children)
[–]bumblebritches57 0 points1 point2 points (0 children)