首页 / 软件开发 / 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;
}