Menu 0 et 1 fonctionnels 3.0

This commit is contained in:
Cameron Bray 2020-05-25 21:23:32 +02:00
parent f33e08f0d7
commit 8e999d0e59

View file

@ -174,13 +174,15 @@ void Menu::menuNext() {
std::string Menu::displayDefault(float temp, float press, int rad, int tap, int nbTortue) {
std:: string message = "";
message = "\n Temperature : " + std::to_string(temp) + " \n ";
message += "Pression : " + std::to_string(press) + " \n ";
if (rad) message += "Etat du radiateur : ON \n ";
else message += "Etat du radiateur : OFF \n ";
message = "\n Temperature : " + std::to_string(temp) + " \n";
message += "Pression : " + std::to_string(press) + " \n";
if (rad) message += "Etat du radiateur : ON \n";
else message += "Etat du radiateur : OFF \n";
if (tap) message += "Etat du robinet : ON \n ";
else message += "Etat du robinet : OFF ";
if (tap) message += "Etat du robinet : ON \n";
else message += "Etat du robinet : OFF \n";
message += "Il y a "+std::to_string(nbTortue)+" Tortues";
return message;
}