0

What does "expected primary expression before <" mean?

I'm constantly getting the message shown above. Can anybody help? I'm trying to write an "if" statement like this: if (total >=1 && <2) { cout << "BURN THIS MONSTROSITY!" <<endl; }

2nd Sep 2016, 3:45 PM
Indie Geek
Indie Geek - avatar
1 ответ
+ 1
You forgot the left operand for the <. if ((total >=1) && (total < 2))
2nd Sep 2016, 4:43 PM
Zen
Zen - avatar