画一王字

#include "graphics.h"
#include "conio.h"
main()
{
  int gdrive=DETECT,gmode;
  int x,y;
  initgraph(&gdrive,&gmode,"   ");
  cleardevice();
  moveto(100,40);
  linerel(40,0);
  x=getx();
  y=gety();
  moveto(x,y+20);
  linerel(-40,0);
  moverel(0,20);
  linerel(40,0);
  moverel(-20,0);
  linerel(0,-40);
  getch();
  closegraph();
}
原文地址:https://www.cnblogs.com/djcsch2001/p/1961695.html