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
22 changes: 22 additions & 0 deletions Exercices/Ex1_UML/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 -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D68 begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D68 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 -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D6B begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D6B 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/Cercle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef Cercle_h
#define Cercle_h

#include "FormesGeometrique.h"


class Cercle : public FormesGeometrique {

public:

virtual double CalculerSurface(double Diametre);

virtual double CalculerPerimetre(double Diametre);
};

#endif // Cercle_h
48 changes: 48 additions & 0 deletions Exercices/Ex1_UML/Ex1.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#include "Ex1.h"




void Ex1::SaisirParameters(int CodeForme)
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D2B begin
{
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D2B end
// don't delete the previous line as it's needed to preserve source code of this autogenerated element

int Ex1::main()
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D2E begin
{
return 0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D2E end
// don't delete the previous line as it's needed to preserve source code of this autogenerated element

void Ex1::ExectuterLesCalculs(int CodeForme)
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D30 begin
{

}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D30 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 -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D33 begin
{

}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D33 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 -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D36 begin
{
return 0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D36 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/Ex1.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef Ex1_h
#define Ex1_h

class FormesGeometrique;

class Ex1 {

public:

void SaisirParameters(int CodeForme);

int main();

void ExectuterLesCalculs(int CodeForme);

void AfficherResultats(int CodeForme);

virtual int ChoisirForme();

public:
int CodeFormeChoisie;

public:

/**
* @element-type FormesGeometrique
*/
FormesGeometrique *myFormesGeometrique;
};

#endif // Ex1_h
Binary file added Exercices/Ex1_UML/Ex1.zargo
Binary file not shown.
Binary file added Exercices/Ex1_UML/Ex1.zargo~
Binary file not shown.
Binary file added Exercices/Ex1_UML/Ex1_Copie.zargo
Binary file not shown.
Empty file.
40 changes: 40 additions & 0 deletions Exercices/Ex1_UML/FormesGeometrique.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include "FormesGeometrique.h"




double FormesGeometrique::CalculerSurface(double x1, double x2)
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D42 begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D42 end
// don't delete the previous line as it's needed to preserve source code of this autogenerated element

double FormesGeometrique::CalculerPerimetre(double x1, double x2)
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D46 begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D46 end
// don't delete the previous line as it's needed to preserve source code of this autogenerated element

double FormesGeometrique::GetSurface()
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D4A begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D4A end
// don't delete the previous line as it's needed to preserve source code of this autogenerated element

double FormesGeometrique::GetPerimetre()
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D4C begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D4C 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/FormesGeometrique.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ifndef FormesGeometrique_h
#define FormesGeometrique_h


class FormesGeometrique {

public:

virtual double CalculerSurface(double x1, double x2);

virtual double CalculerPerimetre(double x1, double x2);

double GetSurface();

virtual double GetPerimetre();

public:
double Surface;
double Perimetre;

};

#endif // FormesGeometrique_h
22 changes: 22 additions & 0 deletions Exercices/Ex1_UML/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 -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D5D begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D5D 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 -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D60 begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D60 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/Rectangle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef Rectangle_h
#define Rectangle_h

#include "FormesGeometrique.h"


class Rectangle : public FormesGeometrique {

public:

double CalculerSurface(double Largeur, double Hauteur);

virtual double CalculerPerimetre(double Largeur, double Hauteur);
};

#endif // Rectangle_h
22 changes: 22 additions & 0 deletions Exercices/Ex1_UML/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 -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D53 begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D53 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 Hauter)
// don't delete the following line as it's needed to preserve source code of this autogenerated element
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D57 begin
{
return 0.0;
}
// section -64--88-103-95-5262175:1931a7fae34:-8000:0000000000000D57 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/TriangleRectangle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef TriangleRectangle_h
#define TriangleRectangle_h

#include "FormesGeometrique.h"


class TriangleRectangle : public FormesGeometrique {

public:

virtual double CalculerSurface(double Base, double Hauteur);

virtual double CalculerPerimetre(double Base, double Hauter);
};

#endif // TriangleRectangle_h
79 changes: 0 additions & 79 deletions Exercices/Ex2_ConversionC_POO/Ex1.c

This file was deleted.

Loading