I need to access two values in a vector called camerapos which contains the values x,y,z but when I does it like tis I get c3867.
int Camera::getCamerapos(){
int x = camerapos.x; //c3867
int y = camerapos.y; //c3867
return x,y;
}
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.
From the error code (assuming MSVC) it looks like
xandyare functions/methods. So, perhaps you should replace the code withBy the way, your return type is (one)
int, so you cannot return bothxandyat the same time. Maybe you want to returnstd::pair<int>or some kind ofPointstructure instead?