TP7 : Mise à jour avec les fichiers moodle

This commit is contained in:
2024-11-28 13:36:34 +01:00
parent a465aa9e59
commit 456150e6b1
5 changed files with 400 additions and 744 deletions

View File

@@ -10,14 +10,7 @@ void Pays::saisie(ifstream &in) {
getline(in, Nom, ';');
getfloat(in, Population, ';');
// Pas dans le fichier :(
// getfloat(in, Area, ';');
// "trim" en c++
auto end = Nom.end();
while (*(end-1) == ' ')
end--;
Nom.erase(end, Nom.end());
getfloat(in, Area, ';');
}
void Pays::affichage() {