please help for this function
-
string triger() { if(… if(… else return ("No signal"); What do you return here when all if's and else's are done? }
- An if(condition) statementA else StatementB; does A or does B and then the statement(s) after. If A ends in a return, then drop the else, B becomes the statement(s) after. If B ends in a return, reverse the condition and statements.
William Roeder:
- An if(condition) statementA else StatementB; does A or does B and then the statement(s) after. If A ends in a return, then drop the else, B becomes the statement(s) after. If B ends in a return, reverse the condition and statements.
thank,s
h write this function
but this error
'}' - not all control paths return a value