Errors:
All of these errors are found on this line:
//ClassPractice.cpp
void tellStats(pick);
which calls...
//Functions.h
void tellStats(string);
which is defined as...
//Functions.cpp
void tellStats(string choice)
{
if (choice == "wizard")
{
cout << "These are the Wizard's stats:" << endl;
cout << "Max HP: 80\nSpeed: 7\nAttack: 10" << endl;
}
}
I don't understand why I am getting these errors. I don't know why an int is even involved with the error. I see nothing referring to ints in these sections of code. I thought I was using 'void' correctly because I don't want to return a value with the function.
You dont call a function with the return type. Dont say:
void tellStats(pick);
just use tellStats(pick);.
Is that line the only place you call tellStats?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With