home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / quickplot / part2 / testprogs.d / box.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  373 b   |  31 lines

  1. /* box surrounding plot space--no args */
  2.  
  3. main(argc,argv)
  4. int argc;
  5. char **argv;
  6. {
  7.     int x0,x1,y0,y1;
  8.  
  9.     x0 = 0;
  10.     y0 = 0;
  11.     x1 = 2000;
  12.     y1 = 2000;
  13.     space(x0,y0,x1,y1);
  14.  
  15.     move(x0,y0);
  16.     label("1");
  17.     move(x0,y1);
  18.     label("2");
  19.     move(x1,y1);
  20.     label("3");
  21.     move(x1,y0);
  22.     label("4");
  23.     move(x0,y0);
  24.     line(x0,y0,x0,y1);
  25.     cont(x1,y1);
  26.     cont(x1,y0);
  27.     cont(x0,y0);
  28.     erase();
  29.     exit(0);
  30. }
  31.