这对你来说可能听起来很奇怪,但我每次都懒得写
if (threadAlive) { threadAlive = false; } else { threadAlive = true; }
是不是有像int ++或int--这样的东西将bool值改为与其值相反?
c c# c++ boolean
boolean ×1
c ×1
c# ×1
c++ ×1