i write a point class, when i compile , vs2008 give me the warning about" not all control parth return a value" could you please tell how to avoid that?
double& operator [](int i) //[] which can used as the left value
{
if(i==0) return x;
else if(i==1) return y;
else if(i==2) return z;
else cerr<<"our of rand index of Point";
}