c++ - Call function1 || function2 syntax error -


i use || between 2 function calls can result of or of calls. here tried:

bool ui() || bool ul() 

however, getting error saying expected initializer before token.

when calling function, don't put function's return type in call. following should work:

bool result = ui() || ul(); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -