This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<graphics.h> | |
#include<conio.h> | |
#include<stdlib.h> | |
int main() | |
{ | |
int gd,gm,n,*x,i,k=0; | |
//window coordinates int wx1=220,wy1=140,wx2=420,wy2=140,wx3=420,wy3=340,wx4=220,wy4=340; | |
int w[]={220,140,420,140,420,340,220,340,220,140};//array for drawing window | |
detectgraph(&gd,&gm); |