samedi 2 mars 2019

Recursive function wont exit loop, ignores && condition

I am working on a program that is the two Jug problem. I am in the process of setting up the functions. My test recursive function wont exit the loop. It ignores the condition statement(&&) and executes again and again.

my IDE is Codeblocks, language is in C++.

main1

main2

Jug Constructor

Fill Function

Recursive Solver tester

Keeps Looping

Aucun commentaire:

Enregistrer un commentaire