TEXTINFO.C
资源名称:C.rar [点击查看]
上传用户:qq5388545
上传日期:2022-07-04
资源大小:29849k
文件大小:0k
源码类别:
界面编程
开发平台:
C/C++
- #include <conio.h>
- void main(void)
- {
- struct text_info text;
- gettextinfo(&text);
- cprintf("Screen coordinates %d,%d to %d,%drn",
- text.wintop, text.winleft, text.winbottom, text.winright);
- cprintf("Text attribute %d Normal attribute %drn",
- text.attribute, text.normattr);
- cprintf("Screen height %d width %drn", text.screenheight,
- text.screenwidth);
- cprintf("Cursor position was row %d column %drn",
- text.cury, text.curx);
- }