Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo
Binary file not shown.
Binary file added Exercices/Ex1_UML/Exercice1_KGR/Ex1.zargo~
Binary file not shown.
22 changes: 22 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.cpp
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/Cercle.h
Original file line number Diff line number Diff line change
@@ -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
49 changes: 49 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.cpp
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/Ex1.h
Original file line number Diff line number Diff line change
@@ -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
40 changes: 40 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.cpp
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/FormesGeometriques.h
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.cpp
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/Rectangle.h
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.cpp
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions Exercices/Ex1_UML/Exercice1_KGR/code/TriangleRectangle.h
Original file line number Diff line number Diff line change
@@ -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