Why wont this work!? (C++)
Go to solution
Solved by WanderingFool,
The warning is exactly as it sounds. Your function playerHand1 doesn't return a value.
Consider
int myFunction() { //Error}vs.int myFunction2() { return 1; //No error}
This throws the exact same error. You notice how it is expecting to return an int, but myFunction doesn't return one. The myFunction2 however does and will not throw an error.
If you don't want a value to be return your declaration should be
void playerHand1.....
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now