PBYetml / POBJ_SLO2_PRJ_CPP

Resultat Projet Etudiants
HomePage
0 stars 2 forks source link

JCA -> mainFctBinaire.cpp -> remarques/bugs -> #93

Open PBYetml opened 1 year ago

PBYetml commented 1 year ago

voir fichier listant les différentes vidéos retour vidéo

jchafla97 commented 1 year ago
  1. Libraire : libraires manquants AND et OR

//-- librairie personnelle --//

include "FonctionBinaire.h"

include "fonctionAND.h"

include "fonctionOR.h"

  1. Déclaration : correction avec instantation

//-- déclaration d'objet allocation dynamique --// FonctionBinaire Resolution = new FonctionBinaire(); fonctionAND ResolutionAND = new fonctionAND(); fonctionOR *ResolutionOR = new fonctionOR();

  1. Test / Condition : correction algorithme choix user avec choix memoire dynamique

//-- déclaration de variables --// char finProgramme; char ChoixFonction;

//-- récupération choix utilisateur --// cin >> ChoixFonction;

    //-- MAJ de l'objet en fonction du choix de l'utilisateur --// 
    if (ChoixFonction == 1)
    {
        Resolution = ResolutionAND;
    }
    else if (ChoixFonction == 2)
    {
        Resolution = ResolutionOR;
    }
    else if (ChoixFonction == 3)
    {
        Resolution = ResolutionOR;
    }