C語言函數大全(w開頭)

函數名: wherex
功能: 返回窗口內水平光標位置
用法: int wherex(void);
程序例:
#include
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
int main(void)
{
clrscr();
gotoxy(10,10);
cprintf("Current location is X: %d Y: %d\r\n", 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\r\n");
return 0;
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章