Advertisement
fursty

sweethome - GS

Mar 27th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1. #include<iostream>
  2. #include<conio.h>
  3. #include<graphics.h>
  4. #include<dos.h>
  5.  
  6. void dda( float xa, float ya, float xb, float yb);
  7.  
  8.  
  9. int main()
  10. {
  11. int gdriver=DETECT,gmode;
  12. initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi");
  13. for(int i=16;i>=14; i--)
  14. {
  15.  
  16. line(216,110,410,110);
  17.  
  18. }
  19. for(int i1=16;i1>=14; i1--)
  20. {
  21.  
  22. line(216,110,216,250);
  23.  
  24. }
  25.  
  26. for(int i2=16;i2>=14; i2--)
  27. {
  28.  
  29. line(216,250,410,250);
  30. }
  31. for(int i3=16;i3>=14; i3--)
  32. {
  33.  
  34. line(410,110,410,250);
  35. }
  36. for(int i5=16;i5>=14; i5--)
  37. {
  38.  
  39. line(216,110,313,10);   }
  40. for(int i6=16;i6>=14; i6--)
  41. {
  42.  
  43. line(410,110,313,10);
  44. }
  45.  
  46. getch();
  47.  
  48. return 0;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement