You mean to add the & before bool gameover? I had read this somewhere but was not sure how to use it.
int ask_rematch(char board[][3], bool &gameover)
int check_winning_condition(char...
Type: Posts; User: Meerul264
You mean to add the & before bool gameover? I had read this somewhere but was not sure how to use it.
int ask_rematch(char board[][3], bool &gameover)
int check_winning_condition(char...
but the bool gameover is declared in game_start, then passed to check_winning_condition, then passed to ask_rematch, to change its value to true. sorry I still can't comprehend.
even after I type...
I want to pass a boolean value, bool gameover(false), into the function check_winning_condition, and then pass it to function
ask_rematch. Then in ask_rematch, if the user's input is "no", then...