I feel like I'm forgetting the basics here, but I can't seem to catch why the statement isn't printing. All 5 conditionals should evaluate to true and the && operator should result, from left to right, they all evaluate to one true. Thanks in advance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <stdio.h>
#include <iostream>
usingnamespace std;
int main()
{
bool h = true, a = false, d = false, f = false, l = false;
if ((h == true) && (a == false) && (d == false) && (f = false) && (l == false))
cout << "hello" << endl;
return 0;
}