📄 eg_getpc.c
字号:
#include <conio.h>
#include <graph.h>
#include <stdlib.h>
main()
{
struct xycoord pos;
_setvideomode( _VRES16COLOR );
_setvieworg( rand() % 640, rand() % 480 );
pos = _getphyscoord( 0, 0 );
_rectangle( _GBORDER, - pos.xcoord, - pos.ycoord,
639 - pos.xcoord, 479 - pos.ycoord );
getch();
_setvideomode( _DEFAULTMODE );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -