#define _CRT_SECURE_NO_WARNINGS 1
#include<easyx.h>
#include<stdio.h> //引用了getchar
int main()
{
initgraph(1000, 1000); //确定图纸尺寸
setorigin(500, 500); //自定义坐标原定
setaspectratio(1, -1); //翻转y轴,成为常规坐标系
POINT points[] = { {300,300},{0,-200},{-300,300} }; //需要连接的坐标
polygon(points, 3); //连接三个点,且闭合
getchar(); //阻塞,画窗停留
closegraph();
return 0;
}
标签:300,points,1000,画个,三角形,include,500,getchar From: https://blog.51cto.com/u_16073189/6245503