value += static_cast<int>(power(2,i0));power(float x,float y)power(double x,double y)均返回x的y次方,返回值类型分别为float和double,你这个语句相当于将power返回的结果强制转换为int整型~