19.01.2013, 20:23
Quote:
"const new const MY_CONSTANT[] = {1, 2, 3}; const is not widerly used however it declares a variable which can not be modified by code. There are a few uses for this - functions with const array parameters can sometimes be compiled more efficiently or you may want something like a define but which is an array. const is a modifier, it must go with new or another variable declarator. If you try modify a const variable the compiler will complain." |
Just make the variables for getpos and then use them to set his position..