Casting problem cant convert from void to float C++
- by Makenshi
as i said i get this horrible error i dont really know what to do anymore
float n= xAxis[i].Normalize();
thats where i get the error and i get it cuz normalize is a void function this is it
void CVector::normalize()
{
float len=Magnitude();
this->x /= len;
this->y /= len;
}
i need normalize to stay as void tho i tried normal casting like this
float n= (float)xAxis[i].Normalize();
and it doesnt work also with static,dynamic cast,reinterpret,const cast and cant make it work any help would be really apreciated...
thank you .<