value returning function question...
whats wrong with the following function? Thanks for any help!!!
bool Greater (int a, int b)
{
if (a > b)
return true;
}
it doesn't return anything when a is not greater than b. This should do it:
1 2 3
|
bool greater(int a, int b) {
return a > b;
}
| |
Last edited on
yea i was thinking it was something along the lines of that, thanks.
Topic archived. No new replies allowed.