void LengthShow(const length_t* const len) {
unsigned int value = len->absolute;
if (value / dimension[Mile]) {
printf("%d Mile ", value / dimension[Mile]);
value %= dimension[Mile];
}else if(value / dimension[Yard]) {
printf("%d Yard ", value / dimension[Yard]);
value %= dimension[Yard];
}else if(value / dimension[Feet) {
printf("%d Feet ", value / dimension[Feet]);
value %= dimension[Feet];
}else if(value) {
printf("%d Inch ", value);
}
}
长度系统req7
最新推荐文章于 2022-05-10 12:11:20 发布