As title. Is it possible to get that ?
Thanks !
As title. Is it possible to get that ?
Thanks !
Coordinates of what?
Your cursor
Your mouse
Your house
I think is cursor...(I'm not sure.....sorry)
Actually, my program is doing things like:
1) print a char 'C'
2)if the user enter R5 then the char 'C' will move 5 "steps" to right, L3 will move 3 "steps" to left.
3)Display the coordinates of char 'C'
I have no problem except 3).
Rather than trying to figure out where it is now, remember where you last moved it to.
int cur_x, cur_y;
Then modify those values as appropriate, and draw your text in the new position
Thanks ! It works !Originally posted by Salem
Rather than trying to figure out where it is now, remember where you last moved it to.
int cur_x, cur_y;
Then modify those values as appropriate, and draw your text in the new position
but is it impossible to get the current position if I don't use this method ?
Last edited by Kelvin; 07-20-2002 at 01:47 PM.
Well there should be a way, but its bound to be compiler specific
Really thanks!