原文:关于java中的“error: bad operand types for binary operator ”

今天做这个题目的时候 . O Check Power of ,遇到一个错误 bad operand types for binary operator amp 。 先贴一下代码: 报错: 一开始猜到是运算符的问题,但是也排除了。一直觉得是后面的 true false 有什么问题,但也发现不了。后来才知道确实是优先级的问题,可能受到赋值 运算符的影响,以为 amp 的优先级比 大,实际上恰好相反。相 ...

2018-05-28 17:51 0 5593 推荐指数:

查看详情

bash - ERROR: binary operator expected

What is the operator =~ called? I'm not sure it has a name. The bash documentation just calls it the =~ operator ...

Tue Nov 24 00:33:00 CST 2020 0 435
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM