搜索

首页  >  问答  >  正文

思路问题

public function getYearDays($y){

.........

    for ($i=0x8000; $i >=0x10 ; $i>>=1) { 

    $sum += ($this->dataInfo[$y-1900] & $i)? 1 : 0;

为什么这里的for循环要右移一位

    }

    return($sum+$this->leapDays($y));

   }


chachachacha2444 天前1113

全部回复(1)我来回复

  • 亚连

    亚连2018-06-09 17:46:17

    你想问什么思想问题,能不能说的详细一些?

    回复
    0
  • 取消回复