光标定位
在字符显示方式下,怎样定位光标的位置?
使用什么样的函数?
问题点数:20、回复次数:4Top
1 楼ltc_mouse(野地芳菲)回复于 2005-05-15 21:10:44 得分 5
Syntax
#include <conio.h>
void gotoxy(int x, int y);
Description
Positions cursor in text window.
gotoxy moves the cursor to the given position in the current text window. If the coordinates are in any way invalid the call to gotoxy is ignored. An example of this is a call to gotoxy(40,30) when (35,25) is the bottom right position in the window. Neither argument to gotoxy can be zero.
Note: Do not use this function for Win32s or Win32 GUI applications.Top
2 楼ltc_mouse(野地芳菲)回复于 2005-05-15 21:12:05 得分 5
gotoxy定位光标输出位置
wherex 和 wherey 函数取得光标所在位置Top
3 楼tfq(大梦谁先觉)回复于 2005-05-17 22:48:21 得分 5
UpTop
4 楼cao12m(★草上飞★)回复于 2005-05-17 23:21:33 得分 5
gotoxy(int x,int y)/*定位光标*/
Top




