你的宝刀磨好了吗? #define ADD_BOUND(var,step,bound) \ (int)( ( var+=(step),var>(bound) ) ? ( var=(bound), 1 ) : 0 )