#include <stdio.h>
#include <stdlib.h>
#include <graphics.h>
#include <conio.h>

#define X_MAX 639
#define Y_MAX 399
#define STEP 30
#define X_STEP X_MAX / STEP
#define Y_STEP Y_MAX / STEP

main()
{
int x,y;
int driver,mode,ecode;

driver = DETECT;

initgraph(&driver, &mode,"");
if( graphresult() != grOk)
{
printf("Graphics System Error: %s\n",
grapherrormsg(ecode) );
exit(1);
}