for 的新用法:

for (auto locker : lockers)

    {

        s1.append(locker.status & zl::ELockerStatus_Door ? "1" : "0");

        s2.append(locker.status & zl::ELockerStatus_Item ? "0" : "1");

        s3.append(locker.status & zl::ELockerStatus_Occupied ? "1" : "0");

}

posted @ 2020-05-25 10:33  郭朋振  阅读(101)  评论(0)    收藏  举报