diff --git a/Exercices/Ex1_UML/Cercle.cpp b/Exercices/Ex1_UML/Cercle.cpp new file mode 100644 index 0000000..ddbf1d0 --- /dev/null +++ b/Exercices/Ex1_UML/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 -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 diff --git a/Exercices/Ex1_UML/Cercle.h b/Exercices/Ex1_UML/Cercle.h new file mode 100644 index 0000000..d1c96e3 --- /dev/null +++ b/Exercices/Ex1_UML/Cercle.h @@ -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 diff --git a/Exercices/Ex1_UML/Ex1.cpp b/Exercices/Ex1_UML/Ex1.cpp new file mode 100644 index 0000000..2ad7450 --- /dev/null +++ b/Exercices/Ex1_UML/Ex1.cpp @@ -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 diff --git a/Exercices/Ex1_UML/Ex1.h b/Exercices/Ex1_UML/Ex1.h new file mode 100644 index 0000000..b35080b --- /dev/null +++ b/Exercices/Ex1_UML/Ex1.h @@ -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 diff --git a/Exercices/Ex1_UML/Ex1.zargo b/Exercices/Ex1_UML/Ex1.zargo new file mode 100644 index 0000000..2b1445a Binary files /dev/null and b/Exercices/Ex1_UML/Ex1.zargo differ diff --git a/Exercices/Ex1_UML/Ex1.zargo~ b/Exercices/Ex1_UML/Ex1.zargo~ new file mode 100644 index 0000000..417e522 Binary files /dev/null and b/Exercices/Ex1_UML/Ex1.zargo~ differ diff --git a/Exercices/Ex1_UML/Ex1_Copie.zargo b/Exercices/Ex1_UML/Ex1_Copie.zargo new file mode 100644 index 0000000..4257717 Binary files /dev/null and b/Exercices/Ex1_UML/Ex1_Copie.zargo differ diff --git a/Exercices/Ex1_UML/Ex1_Copie.zargo~ b/Exercices/Ex1_UML/Ex1_Copie.zargo~ new file mode 100644 index 0000000..e69de29 diff --git a/Exercices/Ex1_UML/FormesGeometrique.cpp b/Exercices/Ex1_UML/FormesGeometrique.cpp new file mode 100644 index 0000000..a978faa --- /dev/null +++ b/Exercices/Ex1_UML/FormesGeometrique.cpp @@ -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 diff --git a/Exercices/Ex1_UML/FormesGeometrique.h b/Exercices/Ex1_UML/FormesGeometrique.h new file mode 100644 index 0000000..d3c0eb1 --- /dev/null +++ b/Exercices/Ex1_UML/FormesGeometrique.h @@ -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 diff --git a/Exercices/Ex1_UML/Rectangle.cpp b/Exercices/Ex1_UML/Rectangle.cpp new file mode 100644 index 0000000..7717cc0 --- /dev/null +++ b/Exercices/Ex1_UML/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 -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 diff --git a/Exercices/Ex1_UML/Rectangle.h b/Exercices/Ex1_UML/Rectangle.h new file mode 100644 index 0000000..9a2fe74 --- /dev/null +++ b/Exercices/Ex1_UML/Rectangle.h @@ -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 diff --git a/Exercices/Ex1_UML/TriangleRectangle.cpp b/Exercices/Ex1_UML/TriangleRectangle.cpp new file mode 100644 index 0000000..f293016 --- /dev/null +++ b/Exercices/Ex1_UML/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 -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 diff --git a/Exercices/Ex1_UML/TriangleRectangle.h b/Exercices/Ex1_UML/TriangleRectangle.h new file mode 100644 index 0000000..40fc6a0 --- /dev/null +++ b/Exercices/Ex1_UML/TriangleRectangle.h @@ -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 diff --git a/Exercices/Ex2_ConversionC_POO/Ex1.c b/Exercices/Ex2_ConversionC_POO/Ex1.c deleted file mode 100644 index f18a52d..0000000 --- a/Exercices/Ex2_ConversionC_POO/Ex1.c +++ /dev/null @@ -1,79 +0,0 @@ -// Caneva Ex1 SL228_POBJ language C++ -// Visual Studio 2015 -// 11.11.2016 C. Huber - -#include - -int main (void) -{ - char UserAnswer; - int ValA, ValB; - // Variables pour test A et B - short i; - short ValB1; - double ValB2; - - printf("Exercice 1 : Huber Christian \n"); - printf("Solution en C a trandformer en C++ \n"); - - - do { - printf("Test A ou B, Q pour Quitter \n"); - scanf_s("%c%*c", &UserAnswer, 2); - - switch (UserAnswer) { - case 'A': - case 'a': - printf("TestA: entrez un nombre entre 1 et 9 \n"); - scanf_s("%d%*c", &ValA); - - if (ValA > 9) - { - ValA = 9; - printf("TestA: ValA limitee a 9 \n"); - } - if (ValA == 0) - { - ValA = 1; - printf("TestA: ValA forcee a 1 \n"); - } - if (ValA > 0 ) - { - printf("%d ", ValA); - for (i=0; i < ValA ; i++) - { - printf ("*"); - } - printf("\n"); // saut de ligne - } - else - { - printf("TestA: ValA est negatif ! \n"); - } - break; - - case 'B': - case 'b': - printf("TestB: entrez une valeur entre 0 et 9 \n"); - scanf_s("%d%*c", &ValB); - - if (ValB >= 0 && ValB <=9 ) - { - for (i=0; i < ValB; i++) { - ValB1 = 100 + (10 * i); - ValB2 = ValB1 / 10000.0; - printf("TestB: i= %d ValB1 = %d ValB2 = %lf \n", i, ValB1, ValB2); - } - } - else - { - printf("TestB: ValB n'est pas entre 0 et 9 ! \n"); - } - break; - - } // end switch - - } while (!(UserAnswer == 'Q' || UserAnswer == 'q')); - - return (0); -} \ No newline at end of file diff --git a/Exercices/Ex2_ConversionC_POO/Ex1.cpp b/Exercices/Ex2_ConversionC_POO/Ex1.cpp new file mode 100644 index 0000000..550180c --- /dev/null +++ b/Exercices/Ex2_ConversionC_POO/Ex1.cpp @@ -0,0 +1,82 @@ +// Caneva Ex1 SL228_POBJ language C++ +// Visual Studio 2015 +// 11.11.2016 C. Huber + + +#include +#include +#include //opti cpp +#include + +int main (void) +{ + char UserAnswer; + int ValA, ValB; + // Variables pour test A et B + short i; + short ValB1; + double ValB2; + + std::cout << "Exercice 1 : Huber Christian" << std::endl; + std::cout << "Solution en C a trandformer en C++" << std::endl; + + do { + std::cout << "Test A ou B, Q pour Quitter "<< std::endl; + std::cin >> UserAnswer; + + switch (UserAnswer) { + case 'A': + case 'a': + std::cout << "TestA: entrez un nombre entre 1 et 9" << std::endl; + std::cin >> ValA; + + if (ValA > 9) + { + ValA = 9; + std::cout << "TestA: ValA limitee a 9" << std::endl; + } + if (ValA == 0) + { + ValA = 1; + std::cout << "TestA: ValA forcee a 1" << std::endl; + } + if (ValA > 0 ) + { + std::cout << ValA << std::endl; + for (i=0; i < ValA ; i++) + { + std::cout << "*"; + } + std::cout << std::endl; + } + else + { + std::cout << "TestA: ValA est negatif !" << std::endl; + } + break; + + case 'B': + case 'b': + std::cout << "TestB: entrez une valeur entre 0 et 9" << std::endl; + std::cin >> ValB; + if (ValB >= 0 && ValB <=9 ) + { + for (i=0; i < ValB; i++) { + ValB1 = 100 + (10 * i); + ValB2 = ValB1 / 10000.0; + std::cout << ("TestB i=") << i << ("ValB1 = ") << ValB1 << ("ValB2= ")<< ValB2 < + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {add5b652-f407-4ce8-9c2e-59bcf3051428} + Exercice1 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdcpp20 + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/Exercice1.vcxproj.filters b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/Exercice1.vcxproj.filters new file mode 100644 index 0000000..6b913a2 --- /dev/null +++ b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/Exercice1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Fichiers sources + + + \ No newline at end of file diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/Exercice1.vcxproj.user b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/Exercice1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/Exercice1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Ex1.obj b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Ex1.obj new file mode 100644 index 0000000..38f54e5 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Ex1.obj differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.exe.recipe b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.exe.recipe new file mode 100644 index 0000000..d30b8bb --- /dev/null +++ b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\ACL\dev\pobj\POBJ_SLO2_24_25\Exercices\Ex2_ConversionC_POO\Exercice1\x64\Debug\Exercice1.exe + + + + + + \ No newline at end of file diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.ilk b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.ilk new file mode 100644 index 0000000..9d75187 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.ilk differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.log b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.log new file mode 100644 index 0000000..edd0236 --- /dev/null +++ b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.log @@ -0,0 +1,2 @@ + Ex1.cpp + Exercice1.vcxproj -> C:\ACL\dev\pobj\POBJ_SLO2_24_25\Exercices\Ex2_ConversionC_POO\Exercice1\x64\Debug\Exercice1.exe diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.command.1.tlog b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..9fcb2d5 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.command.1.tlog differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.read.1.tlog b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4bce454 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.read.1.tlog differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.write.1.tlog b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..5a253fa Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/CL.write.1.tlog differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/Exercice1.lastbuildstate b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/Exercice1.lastbuildstate new file mode 100644 index 0000000..fd95f4b --- /dev/null +++ b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/Exercice1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.32.31326:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\ACL\dev\pobj\POBJ_SLO2_24_25\Exercices\Ex2_ConversionC_POO\Exercice1\| diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.command.1.tlog b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.command.1.tlog new file mode 100644 index 0000000..fa2a683 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.command.1.tlog differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.read.1.tlog b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.read.1.tlog new file mode 100644 index 0000000..3be506a Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.read.1.tlog differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.write.1.tlog b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.write.1.tlog new file mode 100644 index 0000000..f99473e Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/Exercice1.tlog/link.write.1.tlog differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/_IsIncrementalBuild b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/_IsIncrementalBuild new file mode 100644 index 0000000..0c7c421 --- /dev/null +++ b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/_IsIncrementalBuild @@ -0,0 +1 @@ +x64\Debug\\_IsIncrementalBuild diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/vc143.idb b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/vc143.idb new file mode 100644 index 0000000..6ed4847 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/vc143.idb differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/vc143.pdb b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/vc143.pdb new file mode 100644 index 0000000..d34c5ff Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/Exercice1/x64/Debug/vc143.pdb differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/x64/Debug/Exercice1.exe b/Exercices/Ex2_ConversionC_POO/Exercice1/x64/Debug/Exercice1.exe new file mode 100644 index 0000000..2f27955 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/x64/Debug/Exercice1.exe differ diff --git a/Exercices/Ex2_ConversionC_POO/Exercice1/x64/Debug/Exercice1.pdb b/Exercices/Ex2_ConversionC_POO/Exercice1/x64/Debug/Exercice1.pdb new file mode 100644 index 0000000..854c0b1 Binary files /dev/null and b/Exercices/Ex2_ConversionC_POO/Exercice1/x64/Debug/Exercice1.pdb differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/FileContentIndex/f8a4aa7c-5c81-4269-8111-b701c99e73c2.vsidx b/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/FileContentIndex/f8a4aa7c-5c81-4269-8111-b701c99e73c2.vsidx new file mode 100644 index 0000000..3f6629a Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/FileContentIndex/f8a4aa7c-5c81-4269-8111-b701c99e73c2.vsidx differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/FileContentIndex/read.lock b/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/v17/.suo b/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/v17/.suo new file mode 100644 index 0000000..6221f55 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/v17/.suo differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/v17/Browse.VC.db b/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/v17/Browse.VC.db new file mode 100644 index 0000000..fd2bc2b Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/.vs/Ex4_ClassFigGeo_POO/v17/Browse.VC.db differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/.vs/ProjectSettings.json b/Exercices/Ex4_ClassFigGeo_POO/.vs/ProjectSettings.json new file mode 100644 index 0000000..39529b6 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": "Aucune configuration" +} \ No newline at end of file diff --git a/Exercices/Ex4_ClassFigGeo_POO/.vs/VSWorkspaceState.json b/Exercices/Ex4_ClassFigGeo_POO/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..6b61141 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/.vs/VSWorkspaceState.json @@ -0,0 +1,6 @@ +{ + "ExpandedNodes": [ + "" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/Exercices/Ex4_ClassFigGeo_POO/.vs/slnx.sqlite b/Exercices/Ex4_ClassFigGeo_POO/.vs/slnx.sqlite new file mode 100644 index 0000000..d8e0057 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/.vs/slnx.sqlite differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Ex4.cpp b/Exercices/Ex4_ClassFigGeo_POO/Ex4.cpp index b821056..e53540a 100644 --- a/Exercices/Ex4_ClassFigGeo_POO/Ex4.cpp +++ b/Exercices/Ex4_ClassFigGeo_POO/Ex4.cpp @@ -4,12 +4,26 @@ #include using namespace std; -#include "Utilisateur.h" +#include "Exercice4/Utilisateur.h" int main (void) { Utilisateur UserA, UserB, UserC; + UserA.ChoisirForme(0); + UserA.SaisirLesParametres(); + UserA.ExecuterLesCalculs(); + UserA.AfficherResultats(); + UserB.ChoisirForme(1); + UserB.SaisirLesParametres(); + UserB.ExecuterLesCalculs(); + UserB.AfficherResultats(); + + + UserC.ChoisirForme(2); + UserC.SaisirLesParametres(); + UserC.ExecuterLesCalculs(); + UserC.AfficherResultats(); return 0; } \ No newline at end of file diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/FileContentIndex/b720bbdf-361b-402a-9645-3ea5079fd530.vsidx b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/FileContentIndex/b720bbdf-361b-402a-9645-3ea5079fd530.vsidx new file mode 100644 index 0000000..dd83521 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/FileContentIndex/b720bbdf-361b-402a-9645-3ea5079fd530.vsidx differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/FileContentIndex/read.lock b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/.suo b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/.suo new file mode 100644 index 0000000..a5ceeda Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/.suo differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/Browse.VC.db b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/Browse.VC.db new file mode 100644 index 0000000..62a9b13 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/Browse.VC.db differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/42ced16a5970a56a/RECTANGLE.ipch b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/42ced16a5970a56a/RECTANGLE.ipch new file mode 100644 index 0000000..f850351 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/42ced16a5970a56a/RECTANGLE.ipch differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/46263b72820c2d5f/FORMESGEOMETRIQUES.ipch b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/46263b72820c2d5f/FORMESGEOMETRIQUES.ipch new file mode 100644 index 0000000..d44dcf5 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/46263b72820c2d5f/FORMESGEOMETRIQUES.ipch differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/7504457f9c08a846/TRIANGLERECTANGLE.ipch b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/7504457f9c08a846/TRIANGLERECTANGLE.ipch new file mode 100644 index 0000000..c0a829b Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/7504457f9c08a846/TRIANGLERECTANGLE.ipch differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/8f2e7ce212c56df8/UTILISATEUR.ipch b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/8f2e7ce212c56df8/UTILISATEUR.ipch new file mode 100644 index 0000000..00c7776 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/8f2e7ce212c56df8/UTILISATEUR.ipch differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/ca33cc5ac3a64a2f/CERCLE.ipch b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/ca33cc5ac3a64a2f/CERCLE.ipch new file mode 100644 index 0000000..a60ba44 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/ca33cc5ac3a64a2f/CERCLE.ipch differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/f1d9024139192ed6/EX4.ipch b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/f1d9024139192ed6/EX4.ipch new file mode 100644 index 0000000..7dd0c65 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/.vs/Exercice4/v17/ipch/AutoPCH/f1d9024139192ed6/EX4.ipch differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Cercle.cpp b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Cercle.cpp new file mode 100644 index 0000000..d4a5dfe --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Cercle.cpp @@ -0,0 +1,25 @@ +#include "Cercle.h" + +#define _USE_MATH_DEFINES + +#include "math.h" + + + +void Cercle::CalculerSurface(double diametre,double zed) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D74 begin +{ + Surface = M_PI * pow(diametre,2 ); +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D74 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void Cercle::CalculerPerimetre(double diametre, double zed) +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D7A begin +{ + Perimetre= 2*(M_PI * ((float)diametre/2)); +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D7A end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Cercle.h b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Cercle.h new file mode 100644 index 0000000..ac9f84e --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Cercle.h @@ -0,0 +1,16 @@ +#ifndef Cercle_h +#define Cercle_h + +#include "FormesGeometriques.h" + + +class Cercle : public FormesGeometriques { + + public: + + void CalculerSurface(double diametre, double zed); + + void CalculerPerimetre(double diametre, double zed); +}; + +#endif // Cercle_h diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4.sln b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4.sln new file mode 100644 index 0000000..e0e2e5d --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32630.192 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Exercice4", "Exercice4\Exercice4.vcxproj", "{1B739D57-8DF1-4E4C-8DCE-23EF44952356}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Debug|x64.ActiveCfg = Debug|x64 + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Debug|x64.Build.0 = Debug|x64 + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Debug|x86.ActiveCfg = Debug|Win32 + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Debug|x86.Build.0 = Debug|Win32 + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Release|x64.ActiveCfg = Release|x64 + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Release|x64.Build.0 = Release|x64 + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Release|x86.ActiveCfg = Release|Win32 + {1B739D57-8DF1-4E4C-8DCE-23EF44952356}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DC630D30-5D9D-4025-B43E-B37335B59372} + EndGlobalSection +EndGlobal diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj new file mode 100644 index 0000000..53a02bb --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + + + + + + + + + + + + + 16.0 + Win32Proj + {1b739d57-8df1-4e4c-8dce-23ef44952356} + Exercice4 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + \ No newline at end of file diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj.filters b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj.filters new file mode 100644 index 0000000..35cd96b --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj.filters @@ -0,0 +1,54 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Fichiers sources + + + Fichiers sources + + + Fichiers sources + + + Fichiers sources + + + Fichiers sources + + + Fichiers sources + + + + + Fichiers d%27en-tête + + + Fichiers d%27en-tête + + + Fichiers d%27en-tête + + + Fichiers d%27en-tête + + + Fichiers d%27en-tête + + + \ No newline at end of file diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj.user b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/Exercice4.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Cercle.obj b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Cercle.obj new file mode 100644 index 0000000..8e2f1cc Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Cercle.obj differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Ex4.obj b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Ex4.obj new file mode 100644 index 0000000..dd8abf3 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Ex4.obj differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.Build.CppClean.log b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.Build.CppClean.log new file mode 100644 index 0000000..86ae6c3 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.Build.CppClean.log @@ -0,0 +1,17 @@ +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\vc143.pdb +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\vc143.idb +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\utilisateur.obj +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\trianglerectangle.obj +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\rectangle.obj +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\formesgeometriques.obj +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\cercle.obj +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\ex4.obj +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\x64\debug\exercice4.exe +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\exercice4.ilk +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\x64\debug\exercice4.pdb +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\exercice4.tlog\cl.command.1.tlog +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\exercice4.tlog\cl.read.1.tlog +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\exercice4.tlog\cl.write.1.tlog +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\exercice4.tlog\link.command.1.tlog +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\exercice4.tlog\link.read.1.tlog +c:\acl\dev\pobj\pobj_slo2_24_25\exercices\ex4_classfiggeo_poo\exercice4\exercice4\x64\debug\exercice4.tlog\link.write.1.tlog diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.exe.recipe b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.exe.recipe new file mode 100644 index 0000000..cbc49bb --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\ACL\dev\pobj\POBJ_SLO2_24_25\Exercices\Ex4_ClassFigGeo_POO\Exercice4\x64\Debug\Exercice4.exe + + + + + + \ No newline at end of file diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.ilk b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.ilk new file mode 100644 index 0000000..e6d4f46 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.ilk differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.log b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.log new file mode 100644 index 0000000..8aa1568 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.log @@ -0,0 +1,8 @@ + Ex4.cpp + Cercle.cpp + FormesGeometriques.cpp + Rectangle.cpp + TriangleRectangle.cpp + Utilisateur.cpp + Génération de code en cours... + Exercice4.vcxproj -> C:\ACL\dev\pobj\POBJ_SLO2_24_25\Exercices\Ex4_ClassFigGeo_POO\Exercice4\x64\Debug\Exercice4.exe diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.command.1.tlog b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.command.1.tlog new file mode 100644 index 0000000..8984282 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.command.1.tlog differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.read.1.tlog b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8efeb0e Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.read.1.tlog differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.write.1.tlog b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.write.1.tlog new file mode 100644 index 0000000..85a930a Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/CL.write.1.tlog differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/Exercice4.lastbuildstate b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/Exercice4.lastbuildstate new file mode 100644 index 0000000..1e559b6 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/Exercice4.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.32.31326:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\ACL\dev\pobj\POBJ_SLO2_24_25\Exercices\Ex4_ClassFigGeo_POO\Exercice4\| diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.command.1.tlog b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.command.1.tlog new file mode 100644 index 0000000..7fbe689 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.command.1.tlog differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.read.1.tlog b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.read.1.tlog new file mode 100644 index 0000000..0b0f44e Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.read.1.tlog differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.write.1.tlog b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.write.1.tlog new file mode 100644 index 0000000..11eae72 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.tlog/link.write.1.tlog differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.vcxproj.FileListAbsolute.txt b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Exercice4.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..e69de29 diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/FormesGeometriques.obj b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/FormesGeometriques.obj new file mode 100644 index 0000000..f528dcf Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/FormesGeometriques.obj differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Rectangle.obj b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Rectangle.obj new file mode 100644 index 0000000..f5fb7f5 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Rectangle.obj differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/TriangleRectangle.obj b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/TriangleRectangle.obj new file mode 100644 index 0000000..fe0dad4 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/TriangleRectangle.obj differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Utilisateur.obj b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Utilisateur.obj new file mode 100644 index 0000000..83e07d5 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/Utilisateur.obj differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/_IsIncrementalBuild b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/_IsIncrementalBuild new file mode 100644 index 0000000..0c7c421 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/_IsIncrementalBuild @@ -0,0 +1 @@ +x64\Debug\\_IsIncrementalBuild diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/vc143.idb b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/vc143.idb new file mode 100644 index 0000000..b912055 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/vc143.idb differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/vc143.pdb b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/vc143.pdb new file mode 100644 index 0000000..fc050cc Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Exercice4/x64/Debug/vc143.pdb differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/FormesGeometriques.cpp b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/FormesGeometriques.cpp new file mode 100644 index 0000000..c7e4f6b --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/FormesGeometriques.cpp @@ -0,0 +1,41 @@ +#include "FormesGeometriques.h" +#include + + + +void 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 -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D50 begin +{ + + //FormesGeometriques::Surface= pow((x1 + x2),2) ; +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D50 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void 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 -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D54 begin +{ + //FormesGeometriques::Perimetre = (x1 + x2)*2; +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D54 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 -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D7D begin +{ + return FormesGeometriques::Surface; +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D7D 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 -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D7F begin +{ + return FormesGeometriques::Perimetre; +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D7F end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/FormesGeometriques.h b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/FormesGeometriques.h new file mode 100644 index 0000000..a7c84cf --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/FormesGeometriques.h @@ -0,0 +1,24 @@ +#ifndef FormesGeometriques_h +#define FormesGeometriques_h + + +class FormesGeometriques { + + public: + + virtual void CalculerSurface(double x1, double x2); + + virtual void CalculerPerimetre(double x1, double x2); + + double GetSurface(); + + double GetPerimetre(); + + + protected: + double Surface; + double Perimetre; + +}; + +#endif // FormesGeometriques_h diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Rectangle.cpp b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Rectangle.cpp new file mode 100644 index 0000000..89b0b41 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Rectangle.cpp @@ -0,0 +1,24 @@ +#include "Rectangle.h" + + + + +void 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-1-58--553bbdf8:13b14881301:-8000:0000000000000D6A begin +{ + + Surface = largeur * hauteur; +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D6A end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void 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-1-58--553bbdf8:13b14881301:-8000:0000000000000D6C begin +{ + Perimetre = 2*(largeur + hauteur); + +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D6C end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Rectangle.h b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Rectangle.h new file mode 100644 index 0000000..86016da --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Rectangle.h @@ -0,0 +1,16 @@ +#ifndef Rectangle_h +#define Rectangle_h + +#include "FormesGeometriques.h" + + +class Rectangle : public FormesGeometriques { + + public: + + void CalculerSurface(double largeur, double hauteur); + + void CalculerPerimetre(double largeur, double hauteur); +}; + +#endif // Rectangle_h diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/TriangleRectangle.cpp b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/TriangleRectangle.cpp new file mode 100644 index 0000000..09c14e8 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/TriangleRectangle.cpp @@ -0,0 +1,24 @@ +#include "TriangleRectangle.h" +#include "math.h" + + + + +void 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-1-58--553bbdf8:13b14881301:-8000:0000000000000D60 begin +{ + FormesGeometriques::Surface = ((base * hauteur)/2); +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D60 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void 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 -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D64 begin +{ + FormesGeometriques::Perimetre = base + hauteur + (sqrt(pow(base,2)+ pow(hauteur,2))); + +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D64 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/TriangleRectangle.h b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/TriangleRectangle.h new file mode 100644 index 0000000..8ec55c8 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/TriangleRectangle.h @@ -0,0 +1,17 @@ +#ifndef TriangleRectangle_h +#define TriangleRectangle_h + +#include "FormesGeometriques.h" + + +class TriangleRectangle : public FormesGeometriques { + + public: + + void CalculerSurface(double base, double hauteur); + + void CalculerPerimetre(double base, double hauteur); + +}; + +#endif // TriangleRectangle_h diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Utilisateur.cpp b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Utilisateur.cpp new file mode 100644 index 0000000..cf7381c --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Utilisateur.cpp @@ -0,0 +1,107 @@ +#include "Utilisateur.h" +#include "TriangleRectangle.h" +#include "Rectangle.h" +#include "Cercle.h" +#include + + +void Utilisateur::AfficherResultats() +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D40 begin +{ + switch (m_CodeFormeChoisie) + { + + case 0: + std::cout << "\nPour un triangleRectangle base= "<> m_x1; + //m_x2 = hauteur en centimetre + std::cout << "\ngimme hauteur: " << std::endl; + std::cin >> m_x2; + break; + + case 1: + + //m_x1 = largeur en centimetre + std::cout << "\ngimme largeur: " << std::endl; + std::cin >> m_x1; + //m_x2 = hauteur en centimetre + std::cout << "\ngimme hauteur: " << std::endl; + std::cin >> m_x2; + break; + case 2: + + //m_x1 = diametre en centimetre + std::cout << "\ngimme diameter: " << std::endl; + std::cin >> m_x1; + m_x2 =0; + break; + + } + + +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D44 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element + +void Utilisateur::ExecuterLesCalculs() +// don't delete the following line as it's needed to preserve source code of this autogenerated element +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D47 begin +{ + myFormesGeometriques->CalculerPerimetre(m_x1,m_x2); + myFormesGeometriques->CalculerSurface(m_x1,m_x2); + +} +// section -64--88-1-58--553bbdf8:13b14881301:-8000:0000000000000D47 end +// don't delete the previous line as it's needed to preserve source code of this autogenerated element diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Utilisateur.h b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Utilisateur.h new file mode 100644 index 0000000..c719832 --- /dev/null +++ b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/Utilisateur.h @@ -0,0 +1,31 @@ +#ifndef Utilisateur_h +#define Utilisateur_h + +class FormesGeometriques; + +class Utilisateur { + + public: + + void AfficherResultats(); + + int ChoisirForme(int CodeForme); + + void SaisirLesParametres(); + + void ExecuterLesCalculs(); + + + private: + int m_CodeFormeChoisie; + float m_x1; + float m_x2; + public: + + /** + * @element-type FormesGeometriques + */ + FormesGeometriques *myFormesGeometriques; +}; + +#endif // Utilisateur_h diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/x64/Debug/Exercice4.exe b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/x64/Debug/Exercice4.exe new file mode 100644 index 0000000..b75cc1e Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/x64/Debug/Exercice4.exe differ diff --git a/Exercices/Ex4_ClassFigGeo_POO/Exercice4/x64/Debug/Exercice4.pdb b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/x64/Debug/Exercice4.pdb new file mode 100644 index 0000000..4f09a19 Binary files /dev/null and b/Exercices/Ex4_ClassFigGeo_POO/Exercice4/x64/Debug/Exercice4.pdb differ