Guest User

Untitled

a guest
Jul 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. #include "types.h"
  6. #include "initialisation.h"
  7. #include "affichage.h"
  8. #include "interfaceGraphique.h"
  9.  
  10.  
  11.  
  12. int main (int argc, char** argv)
  13. {
  14.  
  15. Point2D a;
  16. Segment2D s;
  17. Rectangle2D dim;
  18. Cercle2D Cercle;
  19. ArcDeCercle2D ArcDeCercle;
  20.  
  21.  
  22. a.x = 10;
  23. a.y = 20;
  24.  
  25.  
  26. s.depart.x = 30;
  27. s.depart.y = 50;
  28. s.arrive.x = 40;
  29. s.arrive.y = 60;
  30.  
  31.  
  32. Point2D point_A;
  33. Point2D point_B;
  34. Point2D point_C;
  35.  
  36. point_A.x = 40;
  37. point_A.y = 60;
  38.  
  39. point_B.x = 25;
  40. point_B.y = 44;
  41.  
  42. point_C.x = 26;
  43. point_C.y = 15;
  44.  
  45.  
  46. Cercle.centre.x = 0;
  47. Cercle.centre.y = 3;
  48. Cercle.rayon.depart.x = 30;
  49. Cercle.rayon.arrive.x = 50;
  50. Cercle.rayon.depart.y = 40;
  51. Cercle.rayon.arrive.y = 60;
  52.  
  53.  
  54. ArcDeCercle.centre.x = 23;
  55. ArcDeCercle.centre.y = 40;
  56. ArcDeCercle.rayon.depart.x = 30;
  57. ArcDeCercle.rayon.depart.y = 56;
  58. ArcDeCercle.rayon.arrive.x = 35;
  59. ArcDeCercle.rayon.arrive.y = 48;
  60. ArcDeCercle.angle_depart = 45;
  61. ArcDeCercle.angle_fin = 315;
  62.  
  63. start ();
  64.  
  65. printf_Point2D (a);
  66. printf_Segment2D (s);
  67. printf_Rectangle2D (dim,point_A,point_B,point_C);
  68. printf_Cercle2D (Cercle);
  69. printf_ArcDeCercle2D (ArcDeCercle);
  70.  
  71. initialisation (&argc, argv, 0, 0, 500, 400, "essai");
  72.  
  73. dessiner_Point2D (a);
  74. dessiner_Segment2D (s);
  75. dessiner_Rectangle2D (dim,point_A,point_B,point_C);
  76. dessiner_Cercle2D (Cercle);
  77. dessiner_ArcDeCercle2D (ArcDeCercle);
  78.  
  79. afficherLaFenetreGraphique ();
  80.  
  81. system("PAUSE");
  82. return 0;
  83. }
Add Comment
Please, Sign In to add comment