1.官网下载easyx
2.根据已安装的编译器点击安装easyx
3.第一个程序
#include <graphics.h>//easyx的头we年库
#include <stdlib.h>
int main(void)
{
//初始化幕布
initgraph(640, 480);//规定图片的像素
//调用画圆函数
circle(320, 240, 200);//分别是圆心坐标和半径
system("pause");//暂停以查看
//关闭图形界面
closegraph();
}
4.运行后控制台输出
第二个程序:画半径变化的圆