正负数转换

2019-04-02  本文已影响0人  等消息的人
- (NSInteger)change:(NSInteger)num {
    return num = num ? ~(num - 1) : ~num + 1;
}
上一篇 下一篇

猜你喜欢

热点阅读