feet %= feet_per_yard;

问题描述:

feet %= feet_per_yard;

feet %= feet_per_yard;
就是
feet = feet%feet_per_yard;
就是feet对feet_per_yard取余