wherex是一个程序函数,作用是返回窗口内水平光标位置。
程序例:
#include
int main(void)
{
clrscr();
gotoxy(10,10);
cprintf("Current location is X: %d Y: %drn", wherex(), wherey());
getch();
return 0;
}