双击安装EasyX
配合Visual C++2010使用,正常建立项目
附上脚本:
#include<graphics.h>
#include<Windows.h>
int main(void){
//初始化图像界面640x480
initgraph(640,480);
//设置背景色
setbkcolor(RGB(64,128,128));
//填充背景
cleardevice();
//设置画笔颜色
setlinecolor(RGB(255,0,0));
//设置画笔样式-线型和线宽
setlinestyle(PS_SOLID,10);
//构建需要的图形-画一个圆
circle(320,240,200);
//设置字体颜色
settextcolor(RGB(255,255,0));
//设置字体
settextstyle(100,0,"微软雅黑");
//在坐标(170,190)的位置打印文字
outtextxy(170,190,"无码高清");
//画线,从坐标位置(180,380)到(460,100)
line(180,380,460,100);
//暂停
system("pause");
//关闭图形界面
closegraph();
return 0;
}