posted 9 years ago
Hi guys
I hope someone could help with this simple problem.
I can't understand as to why this function prototype cannot be compiled by MinGW compilers, however, it does work in visual studio.
bool xor(bool a, bool b);
int main() {
.....//
.....
}
bool xor(bool a, bool b) {
return (a || b) && !(a && b);
}
I have wondered this for a while and cannot find why this problem occurs. Any comments are appreciated.
Thank you:)