I am confused. I can not use this on a float? Must it be a integer? I try to define that as a point but I guess I can not convert float to float *
//global definition
float g_posX = 0.0f;
&g_posX -= 3.03f;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You probably simply want to do this:
What your code tries to do is take the address of
g_posXand subtract3.03ffrom the address. That does not work, for two reasons: