So here is my code a little more edited however now I\'m stuck on the success parameter:
#include #include // need this in
The error says it all, you are trying to return a bool from a function with return type void. Change the return type to void.
About declaring success, simply declare it like every other variable you have declared.