Menu 0 et 1 fonctionnels 3.0
This commit is contained in:
parent
f33e08f0d7
commit
8e999d0e59
1 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue