《C语言函数速查》W开头的函数


深入了解IT/互联网行业及岗位,请参阅通用IT/互联网岗位招聘计划(最新全岗版)
深入了解职业晋升及学习路线,请参阅最优职业晋升路线和课程学习指南(最新全栈版)


内容导航

  • 01、—

函数名: wherex
功 能: 返回窗口内水平光标位置
用 法: int wherex(void);
程序例:

#include <conio.h>

int main(void)
{
clrscr();
gotoxy(10,10);
cprintf(“Current location is X: %d Y: %d\r\n”, wherex(), wherey());
getch();

return 0;
}

函数名: wherey
功 能: 返回窗口内垂直光标位置
用 法: int wherey(void);
程序例:

#include <conio.h>

int main(void)
{
clrscr();
gotoxy(10,10);

相关文章: