while((Status.health!0)&&(Wolves.health!0))期望表达式")"时出错

Pen*_*826 2 c++ boolean-logic boolean-expression

嘿,我有一个错误:

while((Status.health !0) && (Wolves.health !0) )
Run Code Online (Sandbox Code Playgroud)

有人能看出这有什么问题吗?

Joh*_*ing 5

这在语法上是不正确的.

假设您要验证变量不等于零:

while((Status.health != 0) && (Wolves.health != 0) )
Run Code Online (Sandbox Code Playgroud)