c++检测布尔型数组中所有元素为是否为true

BOOL bPictureGathered[8];
for (i = 0; i<8; i++)
    {   
        if (bPictureGathered[i] != TRUE)
        {
            bGathered = false;
            break;
        }
        else
        {
            bGathered = true;
        }
    }

猜你喜欢

转载自blog.csdn.net/weixin_42364825/article/details/80948619