[问题] if判断句条件类型问题

楼主: apout (apout)   2016-05-25 11:57:21
if( x=1 && m.contain(dish)),x是int,后面的是boolean,
请问上面这句我要两个条件都成立才执行,我用&&连接,但判断错误说operator "&&" ca
nnot be applied to "int","boolean" ,意思是说&&不能用在int与boolean之间??那要
如何表示我想要的条件,谢谢。
还有android studio的自动缩排快捷键查网络都是写Ctrl+alt+L,但按了并没用,查内建
的快捷键也没次按法,请问有人知道吗?
作者: speedyoung (小瞬)   2016-05-25 12:08:00
x==1

Links booklink

Contact Us: admin [ a t ] ucptt.com