diff --git a/Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo b/Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo new file mode 100644 index 0000000..b607732 Binary files /dev/null and b/Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo differ diff --git a/Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo~ b/Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo~ new file mode 100644 index 0000000..47368fd Binary files /dev/null and b/Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo~ differ diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.cpp b/Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.cpp new file mode 100644 index 0000000..d2c2c16 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.cpp @@ -0,0 +1,22 @@ +#include "Cercle.h" + + + + +double Cercle::CalculerSurface(double Diametre) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E6F begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E6F end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +double Cercle::CalculerPerimetre(double Diametre) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E72 begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E72 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.h b/Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.h new file mode 100644 index 0000000..3a4d047 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.h @@ -0,0 +1,16 @@ +#ifndef Cercle_h +#define Cercle_h + +#include "FormesGeometriques.h" + + +class Cercle : public FormesGeometriques { + + public: + + double CalculerSurface(double Diametre); + + double CalculerPerimetre(double Diametre); +}; + +#endif // Cercle_h diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.cpp b/Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.cpp new file mode 100644 index 0000000..0137db0 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.cpp @@ -0,0 +1,49 @@ +#include "Ex1.h" + + + + +int Ex1::main() +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E2B begin +{ + return 0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E2B end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +int Ex1::ChoisirForme() +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E2D begin +{ + return 0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E2D end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void Ex1::SaisirParametres(int CodeForme) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E2F begin +{ + +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E2F end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void Ex1::ExecuterLesCalculs(int CodeForme) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E34 begin +{ + +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E34 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void Ex1::AfficherResultats(int CodeForme) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E38 begin +{ + +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E38 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.h b/Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.h new file mode 100644 index 0000000..eaa6b00 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.h @@ -0,0 +1,31 @@ +#ifndef Ex1_h +#define Ex1_h + +class FormesGeometriques; + +class Ex1 { + + public: + + int main(); + + int ChoisirForme(); + + void SaisirParametres(int CodeForme); + + void ExecuterLesCalculs(int CodeForme); + + void AfficherResultats(int CodeForme); + + public: + int CodeFormeChoisie; + + public: + + /** + * @element-type FormesGeometriques + */ + FormesGeometriques *myFormesGeometriques; +}; + +#endif // Ex1_h diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.cpp b/Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.cpp new file mode 100644 index 0000000..5811c17 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.cpp @@ -0,0 +1,40 @@ +#include "FormesGeometriques.h" + + + + +double FormesGeometriques::CalculerSurface(double x1, double x2) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E3C begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E3C end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +double FormesGeometriques::CalculerPerimetre(double x1, double x2) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E49 begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E49 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +double FormesGeometriques::GetSurface() +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E52 begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E52 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +double FormesGeometriques::GetPerimetre() +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E54 begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E54 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.h b/Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.h new file mode 100644 index 0000000..db06b8d --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.h @@ -0,0 +1,24 @@ +#ifndef FormesGeometriques_h +#define FormesGeometriques_h + + +class FormesGeometriques { + + public: + + virtual double CalculerSurface(double x1, double x2); + + virtual double CalculerPerimetre(double x1, double x2); + + double GetSurface(); + + double GetPerimetre(); + + + private: + double Surface; + double Perimetre; + +}; + +#endif // FormesGeometriques_h diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.cpp b/Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.cpp new file mode 100644 index 0000000..5a31f28 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.cpp @@ -0,0 +1,22 @@ +#include "Rectangle.h" + + + + +double Rectangle::CalculerSurface(double Largeur, double Hauteur) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E67 begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E67 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +double Rectangle::CalculerPerimetre(double Largeur, double Hauteur) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E6B begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E6B end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.h b/Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.h new file mode 100644 index 0000000..75ac834 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.h @@ -0,0 +1,16 @@ +#ifndef Rectangle_h +#define Rectangle_h + +#include "FormesGeometriques.h" + + +class Rectangle : public FormesGeometriques { + + public: + + double CalculerSurface(double Largeur, double Hauteur); + + double CalculerPerimetre(double Largeur, double Hauteur); +}; + +#endif // Rectangle_h diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.cpp b/Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.cpp new file mode 100644 index 0000000..c88ddd2 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.cpp @@ -0,0 +1,22 @@ +#include "TriangleRectangle.h" + + + + +double TriangleRectangle::CalculerSurface(double Base, double Hauteur) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E5E begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E5E end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +double TriangleRectangle::CalculerPerimetre(double Base, double Hauteur) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E62 begin +{ + return 0.0; +} +// section 10--28--98-99-5ab32207:19a9af5472b:-8000:0000000000000E62 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.h b/Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.h new file mode 100644 index 0000000..8763883 --- /dev/null +++ b/Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.h @@ -0,0 +1,23 @@ +#ifndef TriangleRectangle_h +#define TriangleRectangle_h + +#include "FormesGeometriques.h" + + +class TriangleRectangle : public FormesGeometriques { + + public: + + double CalculerSurface(double Base, double Hauteur); + + double CalculerPerimetre(double Base, double Hauteur); + + public: + + /** + * @element-type FormesGeometriques + */ + FormesGeometriques *myFormesGeometriques; +}; + +#endif // TriangleRectangle_h