Coding Style

Coding style

case 1

if (a >= 0x20 && a <= 0xea)
if (0x20 <= a && a <= 0xea)

從上面兩個 判斷式來看,
下面的 可讀性 比較高,
有沒有類似 0x20 <= a <= 0xea

posted @ 2020-02-24 20:16  wangchangruei  阅读(175)  评论(0编辑  收藏  举报