Draw House  in your c compiler with graphics. You can implement this source code on c compiler this code is very simple made up with some easy command like:  Delay, Setcolor, Line, Arc.  initgraph  function initializes graphics on the main program.  initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi");  & points to the address of Graphics drive and Graphics mode defined by gdrive and gmode, you can change these strings with your own string like: gd as short of gdrive. And gdrive also having a function named as DETECT , used to detect the modes and graphics code over the program.   Code :  #include<iostream.h>  #include<conio.h>  #include<graphics.h>  #include<dos.h>  void dda( float xa, float ya, float xb, float yb);  void main()  {  clrscr();  int gdriver=DETECT,gmode;  initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi");  for(int i=16;i>=14; i--)  {  delay(900);  setcolor(i);  line(216,110,410,110);  }  for(int i1=16;i1>=14; ...
 
 
Comments
Post a Comment