error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' cout << a&&b <<endl错误

cout << a&&b <<endl这一行出现了这个错误

查了下是因为运算符优先级的问题,加个()就行了

cout << (a&&b) <<endl

 

posted @ 2022-04-07 16:56  纸包鱼  阅读(1691)  评论(0)    收藏  举报