Boolean and Void problem

后端 未结 3 1880
时光取名叫无心
时光取名叫无心 2021-01-29 09:53

So here is my code a little more edited however now I\'m stuck on the success parameter:

#include 
#include         // need this in         


        
3条回答
  •  星月不相逢
    2021-01-29 10:19

    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.

提交回复
热议问题