报错 'moveto': This function is deprecated
'lineto': This function is deprecated 是为什么呢
#include <graphics.h> // 引用图形库头文件
#include <conio.h>
int main()
{
initgraph(640, 480); // 创建绘图窗口,大小为 640x480 像素
int x;
moveto(80, 240);
for (x = 80; x <= 560; x += 40)
{
lineto(x, 60);
lineto(560, 240);
lineto(x, 420);
lineto(80, 240);
}
_getch(); // 按任意键继续
closegraph(); // 关闭绘图窗口
return 0;
}