(一)程序代码:
#include<graphics.h>
#define x 600
#define y 300
int main()
{
initgraph(x,y);
SetWindowText(GetHWnd(),"Eaxy X");
setlinecolor(RGB(255,255,0));
circle(x/2,y/2,y/3);
setlinecolor(RGB(255,0,0));
line(x/2-y/3,y/2,x/2 y/3,y/2);
system("pause>nul");
return 0;
}
(二)程序运行结果:
Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved