Welcome

首页 / 软件开发 / C语言 / C语言函数大全(w开头)

C语言函数大全(w开头)2010-01-29函数名: wherex

功能: 返回窗口内水平光标位置

用法: int wherex(void);

程序例:

#include
int main(void)
{
clrscr();
gotoxy(10,10);
cprintf("Current location is X: %d Y: %d ", wherex(), wherey());
getch();
return 0;
}

函数名: wherey

功能: 返回窗口内垂直光标位置

用法: int wherey(void);

程序例:

#include
int main(void)
{
clrscr();
gotoxy(10,10);
cprintf("Current location is X: %d Y: %d ", wherex(), wherey());
getch();
return 0;
}

函数名: window

功能: 定义活动文本模式窗口

用法: void window(int left, int top, int right, int bottom);

程序例:

#include
int main(void)
{
window(10,10,40,11);
textcolor(BLACK);
textbackground(WHITE);
cprintf("This is a test ");
return 0;
}