Ok, I'm wondering what this will do.
Will the actions execute? Does c++ consider ands before ors, or vice versa?Code:int x=1, b=2; if(x == 1 && b == 2 || x == 2 && b == 2) { //actions; }
Ok, I'm wondering what this will do.
Will the actions execute? Does c++ consider ands before ors, or vice versa?Code:int x=1, b=2; if(x == 1 && b == 2 || x == 2 && b == 2) { //actions; }
Code:Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)