原文:關於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