Your function returns a bool which is either zero or one. Change it to int and your code will work.
solved Why is my while loop function only returning ‘1’?
Your function returns a bool which is either zero or one. Change it to int and your code will work.
solved Why is my while loop function only returning ‘1’?